-   Linux - Newbie (
-   -   rsync (cygwin on XP) - -delete flag not working. (

bobby953 08-04-2009 01:44 AM

rsync (cygwin on XP) - -delete flag not working.
Hi all
I installed cygwin with rsync on a Win XP Machine. My goal is to backup a folder from one hard drive to another (both on XP machine).

I run the following command from a batch file:

C:\cygwin\bin\rsync.exe -avvz --delete --stats --progress "/cygdrive/e/my_music/" "/cygdrive/g/my_music" > music.log

Works fine except the --delete flag is not working. Copies everything in source to destination, but doesn't delete some extra files that are present on the destination, but aren't on the source, which it's supposed to. I looked at the rsync man page, and I'm doing everything right... such as not using wildcard.

If anyone knows what is going on, please let me know. All your help is appreciated in advance. Thanks.

NOTE: the same command works perfect on another computer (XP machine; source and dest both on XP machine).

Meson 08-05-2009 10:13 AM

Is it throwing any errors? You may want to add -i to that to itemize output (I'm not sure if -vv implies it or not). Also, to avoid breaking anything, add -n until you're sure everything is working correctly.

One thing I could think of is to check your ACLs on the destination machine/drive

All times are GMT -5. The time now is 04:31 PM.