RSync only copies the directory structure of a folder, not files
I am using RSync to copy tar balls to an external hard drive on a Windows XP computer.
My files are tar.gz files (perms 600) in a directory (perms 711).
However, when I do a dry start, only folders are returned, files are ignored.
- I use RSync a lot, so I assume there is no problem with my installation.
- I tried to change the file permissions, but it doesn't matter.
- The owner of the files is root, who is also the user that the script registers as
- I am not using the Rsync CVS ββoption
The command I am using is:
rsync^
-azvr^
--stats^
--progress^
-e 'ssh -p 222' root@servername:/home/directory/ ./
Is there something I am missing in order to copy my files?
a source to share
I can only imagine one possibility: my experience with rsync is that it creates the directory structure before copying the files. Rsync may end prematurely, but after this directory phase has completed.
Update0
You mentioned that you are running dry. Rsync by default only shows directory names when the directory and all of its contents are missing from the receiver.
After a lot of experimentation, I can reproduce the behavior you described if the directories in the source have later modification dates than those on the receiver. In this case, the modification time is set at the receiver.
a source to share