rsync problem

Discussion in 'Server Operation' started by GioMBG, Apr 21, 2012.

  1. GioMBG

    GioMBG New Member

    Hi All,
    I'm a newbie of rsync and today I make a test to understand that this cmd is potentionally VERY DANGEROUS (to nwebie like me)...
    explaning:
    Basically I need to backup all vhosts dir from server 1 to server 2 running rsync on server 2:
    THIS WAS WRONG:
    Code:
    rsync -avrz /var/www/vhosts -e ssh [email protected]:/var/www/
    
    with this I think I downgrade or I BAD sinck the server1 to the old server2 so the opposite operation that I wanna do and @ this point I'm not sure about what happened BUT:
    what I have to do is run rsync on server2 to backup all the server1 on server2
    THX
    GioMBG
     

Share This Page