Page 1 of 1

my backup script has problems

Posted: Tue Jan 18, 2011 10:39 pm
by Vegan
In my backup script I use on my web appliance I expected some code to delete aged backups. It does not seem to be working right.

Code: Select all

#remove older backups so as not to consume infinite space
ROTATE=90
STALE=`date --date="$ROTATE days ago"`
rm -f "$STALE.sql.gz"
rm -f "$STALE.tar.gz"

Re: my backup script has problems

Posted: Wed Jan 19, 2011 3:29 am
by Peter Kelly
Any errors? What is it doing?

Re: my backup script has problems

Posted: Wed Jan 19, 2011 8:07 pm
by Vegan
Nothing, I was expecting files older than 90 days to disappear.