RobbieC
Active Member
- Joined
- Dec 14, 2016
- Messages
- 376
- Office Version
- 2010
- Platform
- Windows
Hi there, I have had a script running to make a daily backup of files in a directory. The files are all bundled into a folder and saved into the backup directory (as a backup system)
The files are all tiny, but I have noticed that my 'backup directory' is growing ever bigger and I only really need to keep 7 days worth of backups...
I can do a count of the folders in the backup directory, but if the count is greater than 7, I need to identify the 'oldest' folder and kill it (or any oldest folders after the count of 7)
Is this possible?
If you can point me in the right direction, I'd be eternally grateful
Thanks
The files are all tiny, but I have noticed that my 'backup directory' is growing ever bigger and I only really need to keep 7 days worth of backups...
I can do a count of the folders in the backup directory, but if the count is greater than 7, I need to identify the 'oldest' folder and kill it (or any oldest folders after the count of 7)
Is this possible?
If you can point me in the right direction, I'd be eternally grateful
Thanks