I have had no problem getting rsync to run and copy files across my network. I am now trying to get it to delete files on the target that have been deleted on the source. The command line I used is:
rsync -- times -- perms --delete -zavPR /cygdrive/C/"Documents and Settings"/Bill/"My Documents"/* rsync@192.168.1.1::rsync/
I have tried a few variations, but all without success. Any suggestions?
Hi,
I have experienced a few issues with getting the --delete switch to work too. From what I have read, the syntax that use to specify the source and target path is very important. The prescence or omission of trailing slashes has a significant affect on operations.
You could try the following:
/cygdrive/C/Documents and Settings/Bill/My Documents
also remove the trailing slash on the destination. Which will move all the folders down one level, but does make the --delete switch work properly.
I consider this as an undocumented feature, but if you read the rsync forums, there is actually logic to it. This is the thread that I used to figure out what was going on:
http://lists.samba.org/archive/rsync/2002-November/004090.html
Vaughan