[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rsync question



John O Laoi wrote:
Hello,

I have the same structure on 2 machines.
I want to keep them in sync.

I change a file (ZZZ.ods) on the one with IP address  AAA.BBB.CCC.DDD
and then rsync from the other as follows

~$ rsync -avh  AAA.BBB.CCC.DDD:/home/john/Documents/  ./Documents/
Password:
receiving file list ... done
Documents/X/Y/ZZZ.ods



But the file ~/Documents/X/Y/ZZZ.ods  on the machine I am issuing the
command on does not change!

Some ideas:

- I'm always adding a dot after the end slashes of directory paths (rsync -avh AAA.BBB.CCC.DDD:/home/john/Documents/. ./Documents/. ), this makes sure the tool doesn't inadvertently create a subdirectoy like ./Documents/Documents/

- issue "find ./Documents -name ZZZ.ods" to see whether there is more than one of the same name (for example to check if the above happened).

- check with "md5sum" whether the documents are the same or not

- maybe quit openoffice before opening the document again.

Christian.



Reply to: