Hi What I am doing is backing up my music folder, the source and dest both being on the same Win XP Machine. I am running rsync + cygwin. Here is the command I am running from a batch file: C:\cygwin\bin\rsync.exe -avvz --delete --stats --progress "/cygdrive/e/my_music/" "/cygdrive/g/my_music" > music.log Everything works fine except the --delete flag. It is suppose to delete extraneous files that are present on the dest but aren't on the source. But it doesn't delete them. It may be noted that the exact same command works perfect on another Win XP machine... that is, there it does delete the extra files on destination. I read the man pages, and I am doing everything right, such as not using any wildcards. Please let me know what is going on. Thanks to all in adavance. Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.samba.org/pipermail/rsync/attachments/20090804/7a44e154/attachment.html>
On Tue, Aug 04, 2009 at 03:10:20PM -0400, Sharad K wrote:> Everything works fine except the --delete flag.Does rsync output a warning about an I/O error, saying it is disabling deletes? You can use --force if you're sure you want rsync to override that. You might also try using --dry-run to see if rsync thinks it will remove a file, but doesn't actually do so in the real run (newer rsync versions are more verbose about skipped deletions). ..wayne..