Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-04-2009, 01:44 AM   #1
Registered: Mar 2009
Posts: 41

Rep: Reputation: 15
Smile 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).
Old 08-05-2009, 10:13 AM   #2
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
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


delete, flag, rsync, working

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about rsync and '--link-dest' flag donnaaparis Linux - General 1 07-14-2011 12:55 PM
rsync option in cygwin ufmale Linux - Newbie 2 01-25-2009 12:06 PM
rsync doesn't seem to delete cooks44 Linux - Software 10 11-21-2007 11:57 PM
automated backup with cygwin and rsync hoover93 Linux - Networking 1 07-06-2005 08:35 PM
Using rsync with CygWin and W2K spano Linux - Networking 1 03-15-2005 10:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration