Bug 10209 - rsync in dry run reports it will create a backup dir even though it already exists
Summary: rsync in dry run reports it will create a backup dir even though it already e...
Status: RESOLVED FIXED
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 3.1.0
Hardware: x86 Mac OS X
: P5 normal (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-16 04:09 UTC by chdiza
Modified: 2013-12-23 18:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description chdiza 2013-10-16 04:09:15 UTC
On OSX 10.8.5, rsync 3.1.0 introduces a new bug.  Doing:

rsync -ntrlvhb --delete --backup-dir=foo source dest

when the dir "foo" already exists will cause rsync to display: 

"sending incremental file list
Created backup_dir foo/"

I can understand displaying this message if foo really did need to be created, but it's already there and waiting, and has been used as backup-dir before.  3.0.9 and earlier don't do this.

Also, when the same command is run without the '-n' flag, rsync acts correctly and won't display the "Created backup_dir foo/" message.
Comment 1 Wayne Davison 2013-12-23 18:31:16 UTC
I'm checking in a fix for this now.  Thanks!