Incremental backup and empty dirs

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


Hi,

I use rsync with such options:

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

rsync $OPTIONS ${PATH_SRC} \
      ${PATH_BACKUP}/current

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
${PATH_BACKUP}/${DATE_YESTERDAY}. 

Do you know what to do it to make empty dirs be transferred
to ${PATH_BACKUP}/${DATE_YESTERDAY}?

-- 
BRGDS. Mark


More information about the rsync mailing list