Server backups over a LAN?

Discussion in 'Server Operation' started by edge, Oct 2, 2006.

  1. edge

    edge Active Member Moderator

    Is there an easy way of making a server backup from one server, and storing it on an other one?

    I have two servers in a datacenter. Both servers have two NIC's and they have different WAN (internet) IP's. They also have a LAN IP on the NIC that is not used for the WAN ( and, and I can ping both servers from each other ( is seeing and is seeing

    Now I have had a look at falko's "Creating Images Of Your Linux System With SystemImager" howto, but as he is talking about "Create A Boot Diskette" at step 4, I'm not sure if this is what I want. (the servers do not even have an IDE floppy drive)

    Anyone here who might know what kind of program can do this over a LAN? (something like Ghost for Windows I guess)

    All I really need to backup are the websites, MySQL, DNS settgins and emails/settings, but making an ISO of the system would also be nice, and maybe simpler!?
    Last edited: Oct 2, 2006
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    Well i tried sth. like setting up a "cold standby" when I was using vhcs.
    What I did was just copying the www stuff, mailstuff, CP-Date, as well as the DB Files (no export, stopp db and copy the real files), passwd + shadow diff, as well as postfix stuff and network things.

    That was the more easy part. The bigger thing was to change the IP-Address and make the CP recreate their configs with that new IP-Address.

    I started this with having to identically installed and configured base systems.
  3. sjau

    sjau Local Meanie Moderator

    If you just want to backup data and NOT make a system image then you could use rsync for it and create incremental snapshot-like backups.

    I have written a small howto on that...
  4. falko

    falko Super Moderator ISPConfig Developer

    Have a look here:
    It tells you how you can restore a SystemImager image without having physical access to your machine (therefore no diskettes are needed).
  5. edge

    edge Active Member Moderator

    falko, I had a look at that, but my servers do not have the "Booting Your System Into the Rescue System" and "login to your hosting companies control panel" :-/
  6. edge

    edge Active Member Moderator

    Maybe you can help..

    Problem is that I do not have ssh running on the normal port. (It’s on port: 666 for me).. So
    rsync -avz -e ssh [email protected][/email]:/var/www/ /var/www/
    (from falko's "Mirror Your Web Site With rsync" howto) does not work.. (in my case)
    rsync –avz –e ssh [email protected]:/var/www/ /var/www/
    When I make a SSH connection from box1 ( to box2 ( I do it like this: ssh -p 666 -l username It's the same from box2 to box1 (using the IP)

    Now I've tested the rsync with the -e ssh and the -p 666 option, but this does not work!

    As you did a howto on it, I'm kind of hoping that you know how to get it going with a non standard SSH port.
  7. falko

    falko Super Moderator ISPConfig Developer

    You can try
    rsync –avz –e ssh [email protected]:666:/var/www/ /var/www/
  8. edge

    edge Active Member Moderator

    No go.. It just sits and waits for the connection (not on port 666)
  9. edge

    edge Active Member Moderator

    Found it :)

    rsync –avz –e 'ssh -p 666' [email protected]:/var/www/ /var/www/
    Note the ' in front of ssh and behind the 666

    rsync -avz -e 'ssh -p 666' [email protected]:/test/ /test/
    receiving file list ... done
    sent 64 bytes  received 1326 bytes  556.00 bytes/sec
    total size is 2196  speedup is 1.58
    Last edited: Oct 4, 2006

Share This Page