Incremental backup and empty dirs

Mark rsync at
Mon Apr 30 15:17:52 GMT 2007


I use rsync with such options:

OPTIONS="-a -u -z -v -S --delete-during --ignore-errors \
         -b --backup-dir=${PATH_BACKUP}/${DATE_YESTERDAY} \

rsync $OPTIONS ${PATH_SRC} \

Everything works as it should be, deleted files are transfered everyday
to a new catalog, determinated by a variable ${DATE_YESTERDAY}.

But if an empty dir is deleted from ${PATH_SRC}, then it is
accordingly deleted from ${PATH_BACKUP}/current, and don`t appear in

Do you know what to do it to make empty dirs be transferred


More information about the rsync mailing list