zimmerj

Member
Mar 8, 2004
7
0
151
Hi,

We currently have 2 servers we use for hosting. Both have WHM / Cpanel installed on them. One is the production server and the second is a backup server. I want to keep the backup server up to date by synchronizing it with the production server every day at midnight. I was just going to use the backup feature in WHM to ftp the complete backup to the backup server. However I would need to run a complete backup of the entire server as incremental backup does not work via ftp. I am trying to preserve bandwidth as the backup server we use has a limited amount. The reason I want to do this is to have as close to a mirror image of the production server available in case of an outage where I cannot transfer any information from it. The second server is always online however DNS is disabled until it needs to be used in production. The most important aspect would be email messages as a lot of clients use webmail. Thanks for any ideas or help from someone who has done this before.
 

zimmerj

Member
Mar 8, 2004
7
0
151
no advise :confused: I just would like other people's opinions even if they haven't done this before.
 

webignition

Well-Known Member
Jan 22, 2005
1,876
1
166
I can't offer you a direct implementation as I've never done it, however I'd recommend using the rsync tool for this, which would be a decent way of minimising bandwidth usage:

man rsync said:
The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network connection, using an efficient checksum-search algorithm described in the technical report that accompanies this package.
Of course you'd have to find out what files need to be copied from server A to server B so that, as far as the operation of cPanel is concerned, server B is an exact copy of server A (i.e. all the niggly config files and so forth).

You'd also have to consider how to sync server A with server B if server B was being used due to server A being down.

Try googling secure rsync for loads of useful info in the topic.