LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Rsync Server Data to Another Server (https://www.linuxquestions.org/questions/linux-server-73/rsync-server-data-to-another-server-638666/)

carlosinfl 04-29-2008 09:50 AM

Rsync Server Data to Another Server
 
I am moving my email server from RHEL 4.6 to RHEL 5.1 and have tarballed everything via ssh to the new RHEL 5.1 server in regards to users home directories. Now as files and things change on the production server (RHEL 4.6), I would like to keep the two servers syncornized but am worried my command will have bad results. I know when using Rsync it is dangerous to use the --delete-after string but I need files that are no longer on the production to be removed from the new server since my last tar.

Can someone please tell me if I am doing this wrong?

I will be running this command from the production server (RHEL 4.6):

Code:

/usr/bin/rsync -ave ssh --delete-after /home/ root@192.168.0.100:/home/

carlosinfl 04-30-2008 09:46 AM

Anyone....

forrestt 04-30-2008 10:12 AM

It looks fine to me. You could test it by just running a single user (you could even create one for the test so as not to use a real one) with:

Code:

/usr/bin/rsync -ave ssh --delete-after /home/fakeuser/ root@192.168.0.100:/home/fakeuser/
HTH

Forrest

carlosinfl 05-02-2008 08:47 AM

Thanks Forrest - don't know why I did not think of testing it 1st...Duh!

;)


All times are GMT -5. The time now is 05:47 PM.