who can share your backup solution ?

adrianmak

Verified User
Joined
Jan 30, 2010
Messages
49
The backup in DA only provide one copy of backup, new backup will overwrite the old backup copy.

However I want to keep daily backup store on a remote backup server.

I'm wondering what is the workflow of backup.
My thought is
- create a separate backup folder e.g. /backup
- create my own script and put in cron which copy the backup copy created by DA to /backup and rename the file according to current date e.g. xxxx-mm-dd-yy.tar.gz
- another script which ran rsync to synchronize with a folder on backup server
 
Several solutions have already been posted here throughout the years. Search the forum.
 
rsyncable backup
http://www.directadmin.com/forum/showthread.php?t=33357&highlight=rsync+backup

for put backup in another folder edit
/usr/local/directadmin/data/admin/backup.conf
and edit
local_path=

for a custom data type ive did this scirpt

backup.sh
Code:
cd /backup/
mkdir /backup/admin_backups_$(date +\%d_\%m_\%Y)
mv /backup/admin_backups/* /backup/admin_backups_$(date +\%d_\%m_\%Y)/
find /backup/ -mtime +15 -delete

And ive confiure a cron to run this file the day after the DA backup cron.
The find command will check all backup older then 15 days (i do one backup each week).

For rsync, check the link ive posted, but, i still dont use it cause ive not a remote backup server yet.

Hope it help.
Hope it help you, at least for local backups
 
Back
Top