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

you can use below iApp to restrict number of UCS backup files you want to save locally or you can store remotely… take a look

https://devcentral.f5.com/codeshare/complete-f5-automated-backup-solution

Does it backup the ssl certs too. we have ssl offloading on BIG-IP for 200 plus websites. I believe neither of configuration backup format (ucs/scf) backup the certs. I want my backup for certs too.

Rgds/Ashu