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 (10.0.0.1 and 10.0.0.2), and I can ping both servers from each other (10.0.0.1 is seeing 10.0.0.2 and 10.0.0.2 is seeing 10.0.0.1)

    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: http://www.howtoforge.com/dedicated_server_backup_restore_systemimager
    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
    Code:
    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)
    Code:
    rsync –avz –e ssh [email protected]:/var/www/ /var/www/
    When I make a SSH connection from box1 (10.0.0.1) to box2 (10.0.0.2) I do it like this: ssh -p 666 -l username 10.0.0.2. It's the same from box2 to box1 (using the 10.0.0.1 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

  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 :)

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

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

Share This Page