LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-04-2009, 01:44 AM   #1
bobby953
Member
 
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
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

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


Reply

Tags
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


All times are GMT -5. The time now is 02:57 AM.

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