Log in

View Full Version : Script to delete folders on server older than X


BigJohnny
09-09-2010, 10:44 PM
I'm using THIS (https://vborg.vbsupport.ru/showthread.php?t=167276) auto database backup tool which works just fine except that it tends to fill up the server if you forget about them.

I need some kind of simple script that will work with that mod to delete the folders containing the backups after they are older than x days/weeks.

BigJohnny
09-16-2010, 11:11 AM
Anyone?

BirdOPrey5
09-17-2010, 01:04 AM
There are instructions in that mod to set up a 7 day rotation so it overwrites the same folder every monday for example.

BigJohnny
09-17-2010, 11:08 AM
I want to be able to keep 1 backup from each week for right now.