I have setup my web hosting service to FTP my full backup of my website every Monday. While this automation is great I forgot about one thing to maintain. With each one of these backup files being about 1GB it can start to take up a lot of space if you do not clean up your older files!
So after searching around I came around the .vbs script that looks at the directory and deletes any file older than a specified number of days. In this case I have chosen 60 days. Now a few things to remember, make sure you keep backing up your site if you are running this file otherwise you will delete all of your backups if it is long than 60 days since your last backup! Using Windows scheduler I have made this run shortly after I receive my latest backup file from my web host. This makes my backup process totally automated now even for maintaining files!
Delete Files Older than 60 Days
Related posts:
- Automated CPanel Full Backups Looks like I finally figured out how to automate cpanel...
- MySQL Dump and Load Commands I have had to do this a lot lately with...
Related posts brought to you by Yet Another Related Posts Plugin.