Question about "Mirror Your Web Site With rsync"

Discussion in 'HOWTO-Related Questions' started by wxman, Sep 7, 2008.

  1. wxman

    wxman New Member

    I have two servers set up, one being the primary(SERVER1), the second(SERVER2) being the backup in case of failure. I'm trying to get a good system set up to mirror all my files over to the backup server, so I tried the "Mirror Your Web Site With rsync" article.

    I'm having a problem when I do the:
    rsync -avz -e ssh [email protected]:/var/www/ /var/www/
    I get this:
    Permission denied (publickey).
    rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
    rsync error: unexplained error (code 255) at io.c(454) [receiver=2.6.9]
    I'm guessing it's because I have SERVER1 set up so when I connect using SSH it's asecure connection as described in

    What I need is a wat to modify the instructions so I can work with rsync, but I'm just not getting it to work. I thought I'd ask to see if anyone else had any ideas.
  2. wxman

    wxman New Member

    It looks like I got it to work anyway. I just manually copied the two key files over to the primary server, by way of my own PC. After that the sync worked perfectly.

Share This Page