Jump to content
Welcome to our new Citrix community!

Disk cleanup scripts


Recommended Posts

Hi Stefan, 

 

I don't have a script, but I usually do a oneliner command using the 'find' command and then kick off the firmware install. Something like this for example:

 

find /var/log -type f -mtime +30 -delete && tar xfz build-xxx.tgz && rm build-xxx.tgz && ./installns

 

This will delete all files older than 30 days in /var/log, unpack the build tarball, delete the tarball and start the install. You can add more 'find' commands for /var/nslog and /var/nstrace, although you might need to tweak the parameters, especially for nstrace as those are usually subdirectories. 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...