Hello, We have strange issue with rsync and backup-dir option. In case of having empty directories and deleting them, those directories are not backed up in backup-dir directory. Directories are backed up only if contains files.
Scenario: # mkdir -p source/b # rsync -a --backup --backup-dir=../backup source/ destination/ # rm -rf source/b # rsync -a --backup --backup-dir=../backup source/ destination/ # ls -la backup Backup-dir is empty. I expected to have ‘b’ directory inside. How can we force rsync to backup empty directories to backup-dir in case of deletion? Best Regards Adam Blaszczykowski
-- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html