Need help creating a backup plan.

jim.thornton

Verified User
Joined
Jan 1, 2008
Messages
334
I've been running DirectAdmin for a while now and I would like to build a solid backup plan. One that is pretty complete and automatic.

Here is what I'm thinking and would appreciate some input:

1. Admin Level System backup: The purpose of this would be to backup Direct Admin. My thought process is, if my server goes down and I need to start from scratch, I can install the OS and other security apps, then install DA and restore the DA system level backup therefore restoring all of the settings for all the services installed.

2. Hosting account backups. I would like to have a current/daily, 3 day and 7 day backup for the hosting accounts. With this, I would like to backup all DA settings, emails, website files, databases, etc.

Restore:

I need to come up with an easy way to recover this.

My concern with the DA Backup System, although it is a one-click restore is that in order to sync those files to a remote backup server it would basically be using a ton of bandwidth.

Is this a good strategy, and is it feasible to do this without killing my bandwidth? I think RSync would be a good option for the nightlys because that wouldn't use as much bandwidth. Should I then just use a cron job to tar up my nightly every 3 & 7 days from the backup server?? What's recommended?
 
Hi,

If you want to have a remote backup, then my suggestion would be to get new server from the same DC and ask them to provide private LAN connectivity between these to server. This way, you can sync the data to the remote backup server through private network and bandwidth issue no longer be of any matter to you.


Regarding the backup plan, one backup each of daily, weekly, and monthly would be more than sufficient for you.

You can have a remote backup configured altogether from the DA panel or what you can do is configure local backup and create a script to sync it to the remote backup daily. This way you will have to 2 backups at the same time.
 
Hello,


It would be a good idea to have a backup in another DC as well. This way you have less risks to lose your data in case if your current DC crashes.
 
Okay, this is what I have done to back up the system:

1. Created a backup within the admin panel for all users but did not include mail, dbs or website files.
2. rsync'd all backups created by DA to the remote backup server: ~/backups/daily/da-settings
3. Ran a MySQL dump of all databases on DA server.
4. rsync'd all MySQL backups to remote backup server: ~/backups/daily/db
5. rsync'd all user directories to the remote server: ~/backups/daily/users

Now, on the backup server, I was going to create a cronjob to automatically tar/gzip the daily backups on a weekly and monthly basis.

Is there anything that I'm missing or that I may have done wrong?

BTW... I've done this on a different DC because my biggest fear is that the DC crashes and all my data is unreachable.
 
It seems to be fine if your backups created by directadmin have all the passwords and settings:

[TABLE="width: 100%"]
[TR]
[TD="class: list, align: center"]-[/TD]
[TD="class: list"]Domains Directory[/TD]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]E-Mail Accounts[/TD]
[/TR]
[TR]
[TD="class: list2, align: center"]+[/TD]
[TD="class: list2"]Subdomain Lists[/TD]
[TD="class: list2, align: center"]-[/TD]
[TD="class: list2"]E-Mail Data[/TD]
[/TR]
[TR]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]Ftp Accounts[/TD]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]E-Mail Settings[/TD]
[/TR]
[TR]
[TD="class: list2, align: center"]+[/TD]
[TD="class: list2"]Ftp Settings[/TD]
[TD="class: list2, align: center"]+[/TD]
[TD="class: list2"]Vacation Messages[/TD]
[/TR]
[TR]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]Database Settings[/TD]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]Autoresponders[/TD]
[/TR]
[TR]
[TD="class: list2, align: center"]-[/TD]
[TD="class: list2"]Database Data[/TD]
[TD="class: list2, align: center"]+[/TD]
[TD="class: list2"]Mailing Lists[/TD]
[/TR]
[TR]
[TD="class: list, colspan: 2, align: right"][/TD]
[TD="class: list, align: center"]+[/TD]
[TD="class: list"]Forwarders[/TD]
[/TR]
[/TABLE]
 
Back
Top