PDA

View Full Version : "Admin Backups" and "System Backups"



IPaddress
08-20-2009, 11:59 AM
Hi.
Im Running Directadmin 1.33.7 on a Centos 5 Final.
We are doing 2 Backups: "admin-backups" and "system-backup".

Admin level: "System Backup":
From "system-backup we have backups from the last 7 days, cause all of them are being stored in folders with different names.

Admin level: "Admin Backup/Transfer":
From "admin-backups" we only have only one day cause Directadmin automatically store them in the same folder via FTP.
Is there any way i can make Directadmin backup in different folders the "admin-backups" to store more than one day?

Its very important cause in "admin backups" are all the EMails of all the accounts in every domain!


Thanks in advance.
Bye.

nobaloney
08-20-2009, 12:49 PM
This has been discussed previously in these forums. Please search.

Jeff

SeLLeRoNe
08-21-2009, 01:14 AM
ive a script backup.sh made in this way:


mkdir /backup/admin_backups_$(date +\%d_\%m_\%Y)
mv /backup/admin_backups/* /backup/admin_backups_$(date +\%d_\%m_\%Y)/


and a crontab that execute that backup the day after DA Admin Backup


0 3 * * 1 /backup/backup.sh >/dev/null 2>&1


ofc i changed default backup directory of my system for work on a second driver, so, path should be different for you

this way ive a weekly backup in separated directory with made like
admin_backups_03_08_2009 admin_backups_10_08_2009

i hope is fine for you too

IPaddress
08-21-2009, 08:09 AM
ive a script backup.sh made in this way:


mkdir /backup/admin_backups_$(date +\%d_\%m_\%Y)
mv /backup/admin_backups/* /backup/admin_backups_$(date +\%d_\%m_\%Y)/


and a crontab that execute that backup the day after DA Admin Backup


0 3 * * 1 /backup/backup.sh >/dev/null 2>&1


ofc i changed default backup directory of my system for work on a second driver, so, path should be different for you

this way ive a weekly backup in separated directory with made like
admin_backups_03_08_2009 admin_backups_10_08_2009

i hope is fine for you too

I've done this and works fine :)
Thanks for the advise!

Bye.

frankc420
08-21-2009, 11:58 AM
ive a script backup.sh made in this way:


mkdir /backup/admin_backups_$(date +\%d_\%m_\%Y)
mv /backup/admin_backups/* /backup/admin_backups_$(date +\%d_\%m_\%Y)/


and a crontab that execute that backup the day after DA Admin Backup


0 3 * * 1 /backup/backup.sh >/dev/null 2>&1


ofc i changed default backup directory of my system for work on a second driver, so, path should be different for you

this way ive a weekly backup in separated directory with made like
admin_backups_03_08_2009 admin_backups_10_08_2009

i hope is fine for you too

Ah, a very much needed script! Thanks!