[Bug 11423] rsync 3.1.x is creating empty backup directories

samba-bugs at samba.org samba-bugs at samba.org
Thu Aug 13 22:40:44 UTC 2015


Wayne Davison <wayned at samba.org> changed:

           What    |Removed                     |Added
         Resolution|DUPLICATE                   |WONTFIX

--- Comment #6 from Wayne Davison <wayned at samba.org> ---
I misread this bug as a duplicate of 10724, which is talking about empty dirs
down inside the top-level backup dir.  Sorry about that.

The newest rsync creates the top-level backup dir early so that the user gets
some feedback if they didn't expect the dir to get created.  It also ensures
that rsync has a better idea if backups are going to succeed or not in total (a
failure to find and/or make the backup dir causes the transfer to abort
immediately).  This change is as designed, and I'm not planning to change it.

For your scripted backup use, you could follow an rsync run with:

rmdir --ignore-fail-on-non-empty "$BACKUP_DIR"

if you want to ensure that an empty dir is removed.

You are receiving this mail because:
You are the QA Contact for the bug.

More information about the rsync mailing list