Fajar Priyanto wrote:
On Wednesday 24 January 2007 00:27, Mark Schoonover wrote:
Fajar,
Your rsync command contains extraneous options. The -a actually is a shortcut for -rlptogoD, so all you really need is -avz as options. If you could provide an ls -la of the source and remote directories, that would help tremendously. One thing that comes to mind is to be sure that userA.userA has the same UID & GID on both servers. In my case, where I'm rsyncing to a remote server and the UID/GID don't match, you'll just get numeric IDs as owners and groups on the remote side. So, try eliminating the duplicate options first, be sure UID/GID are the same on both
servers.
Let us know how it goes.
HTH
Hello Mark, Thank you very much for the correction. I will try it as soon as I get back
to
office in a few hours. In the mean time, I want to confirm that:
- yes, the users has the same uid/gid on both servers
Fajar,
What version of rsync are you using on each machine??
Thanks!
Mark Schoonover IS Manager American Geotechnical - California, Nevada and Arizona V-> 858.450.4040 F-> 714.685.3909 C-> 858.472.3816
On Wednesday 24 January 2007 05:17, Mark Schoonover wrote:
Your rsync command contains extraneous options. The -a actually is a shortcut for -rlptogoD, so all you really need is -avz as options.
Hello Mark. You are absolutely right! I put excessive options in the script: rsync -avzgorp -e ssh /var/ftp/pub/ root@serverB:/var/ftp/pub/ sleep 5 rsync -avzgorp -e ssh root@serverB:/var/ftp/pub/ /var/ftp/pub/
After I change to rsync -avz all is ok. The ownership, permission are now correctly rsync-ed. I really appreciate it. Many thanks :) Oh, my rsync is 2.6.3-1
On 24/01/07, Fajar Priyanto fajarpri@cbn.net.id wrote:
After I change to rsync -avz all is ok. The ownership, permission are now correctly rsync-ed.
I would lean towards "rsync -avzP ......" P will do partial restores in case of dropped connectios. Where I am with frequent and unexpected power outages this is a help.
Sudev Barar spake the following on 1/23/2007 7:55 PM:
On 24/01/07, Fajar Priyanto fajarpri@cbn.net.id wrote:
After I change to rsync -avz all is ok. The ownership, permission are now correctly rsync-ed.
I would lean towards "rsync -avzP ......" P will do partial restores in case of dropped connectios. Where I am with frequent and unexpected power outages this is a help.
But it adds a lot of noise if run from cron scripts. If you need the partial file support then run "rsync -avz --partial"