Admin backup gets overwritten every night

Guillermo

Verified User
Joined
May 20, 2006
Messages
95
Location
The Netherlands
I''m trying out the admin backup, so far so good. Instead of creating a new backup every night, it overwrites the backup from the last day. Is there a way to create a new backup every day? Like the system backup does.
 
Yeah, but first the admin backup script needs to be modified. How does it otherwise know to put it in folder 0 on monday and folder 1 on tuesday.
 
Just create a different backup job for each day ;)

Step 2: Day of Week = 0
Step 3: Where = /home/admin/admin_backups/0/

--

Step 2: Day of Week = 1
Step 3: Where = /home/admin/admin_backups/1/

and so on :) this is the way i'm keeping my backups for 7 days.

All through, it would be a usefull feature to have a option to make the date as folder too, why dont you submit this as a feature request?
 
Last edited:
and here is my script to delete system backup for x days old to avoid disk full

Wouldn't it be easier to set up a cron job to run this one command:

Code:
find /home/admin/backup_folder -mtime +7 -exec rm {} \; -print

7 being the number of days old.
 
Back
Top