Forum Discussion

pr's avatar
pr
Icon for Nimbostratus rankNimbostratus
Jul 11, 2017

Need assistance in setting up cron job to delete the automated UCS backup files

Hi Guys,

 

I need your help in setting up cron job to delete the automated UCS backup files. Actually I noticed that we have another vendor who remotely login into our F5 runs the "save /sys config" and everyday ucs files are generated by saving UCS files locally on box will eat up /var parition memory. I need your help to run an automated cron job that will remove the files and keep only 2 UCS files at any point of time..See below for your refrence

 

find /var/local/ucs /var/local/ucs /var/local/ucs/CT034839RDUID02_2017-07-11.ucs /var/local/ucs/CT034839RDUID02_2017-07-08.ucs /var/local/ucs/CT034839RDUID02_2017-07-09.ucs /var/local/ucs/tmp /var/local/ucs/CT034839RDUID02_2017-07-10.ucs /var/local/ucs/cs_backup_rotate.conf /var/local/ucs/CT034839RDUID02_2017-07-07.ucs