<html><head></head><body dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="ApplePlainTextBody"><div class="ApplePlainTextBody">You may wish to take a look at LBackup : http://www.lbackup.org<br><br>Please note as one of the developers I am biased.<br><br><br><blockquote type="cite">On 24/11/2020, at 10:33 AM, CRTS via rsync <rsync@lists.samba.org> wrote:<br><br>Consider following directory structure:<br><br><blockquote type="cite">mkdir -p src/empty tgt bkp<br></blockquote><br>when making an initial backup with<br><br><blockquote type="cite">rsync -r src/ tgt<br></blockquote><br>then the empty directory in src will be copied to tgt. However, if the<br>directory is removed from src<br><br><blockquote type="cite">rmdir src/empty<br></blockquote><br>and rsync is run like<br><br><blockquote type="cite">rsync -r --delete -b --backup-dir=../bkp src/ tgt/<br></blockquote><br>then the empty directory does end up in bkp. I am using the --backup-dir<br>and the --delete option to move an outdated snapshot to another directory<br>by backing up an empty directory. I was expecting that the entire<br>directory structure to be preserved. Apparently this is not the case<br>for empty directories.<br><br>Can this be fixed? Is this even the right place to file a bug report? I<br>do not have a github account to do this on github.<br><br><br>-- <br>Please use reply-all for most replies to avoid omitting the mailing list.<br>To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync<br>Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html<br></blockquote><br></div></body></html>