Save more than one backups

Status
Not open for further replies.

Zagorax

Verified User
Joined
Jan 11, 2011
Messages
67
Hi,

From Admin Backup, I set automatic backup everyday.
But each new backup overrides the last one.

How can I save more than one backup?

Thank you

ps: other question, how can I delete this cronjob? I can't find it anywhere...
 
You need a script that moves the old backups to a folder.

The cronjob should be on the admin backup page at the bottom. "Current Backup Crons"

I think you can only see it under the admin user that setup the cronjob though.
 
You can bypass that limit by creating as many cron tasks (using FTP or Local HDD to store backups) as needed.

To store 7 days backups -> create 7 different tasks with different FTP or local paths (e.x. /user_backups/0 - for Sunday, /user_backups/1 - for Monday, etc).

For IP/Username/Password (FTP) use your reseller's credentials.
 
if you are interested here is how i do:

Code:
cd /home/admin/admin_backups/
mkdir /home/admin/admin_backups_$(date +\%d_\%m_\%Y)
mv /home/admin/admin_backups/* /home/admin/admin_backups_$(date +\%d_\%m_\%Y)

honestly i dont know if there is a backup_post.sh script from directadmin templates for run this commands just after backup complete, i use to do that the day after with crontab

regards
 
Creating 7 cronjobs is completely stupid. A script can easily move backups.
 
Creating a script to move backups is completely stupd. You can easily use seven cronjobs.

Or in other words, both are good solutions; use the one that works for you.

Jeff
 
Status
Not open for further replies.
Back
Top