Ubuntu

Script to Rotate Backups

Delete all files except the ones the first day of the month.

root@DiskStation:/volume1/homes/scripts# find /volume1/NetBackup/Servers/MIA/Asterisk/Admin/Cron/ -type f -mtime +7 ! -name '*01-*' -exec rm -rf {} \;

Attachments:

Leave a Reply

Your email address will not be published. Required fields are marked *