Mirror your site with Rsync

Discussion in 'HOWTO-Related Questions' started by heymrdj, Nov 16, 2007.

  1. heymrdj

    heymrdj Member

    Hello, I'm creating a 2 server loadbalanced cluster and I want to rsync them. This is running on Windows Server 2003 Enterprise, with only the DHCP role running (no DNS or active domain controller) with VMWare, running two Debian Etch servers using falko's guide for creating a session aware load balanced web server cluster. These two web servers use separate NIC's as 192.168.0.5 and 192.168.0.6. In the following line on page two:
    PHP:
    vi /home/someuser/.ssh/authorized_keys

    command
    ="/home/someuser/rsync
    (note: It is important that you use a FQDN like mirror.example.com instead of an IP address after from=, otherwise the automated mirroring will not work!)

    This is where I don't know what to do. This entire setup has no internet access (on site anyways, here at home it's fine to donwload and stuff, but on site it's standalone). So I can't run any FQDN's. UT2004 is set to pull from the apache cluster at 192.168.0.4 How can i do this line when all I can use are IP's?

    Thanks for the help..
     
  2. falko

    falko Super Moderator Howtoforge Staff

    I'd try the IP addresses then, and if it doesn't work, the output of
    Code:
    uname -n
     
  3. heymrdj

    heymrdj Member

    Thx alot, I'll give it a shot :)
     

Share This Page