workflo / shaback

A hash digest based backup tool
GNU General Public License v3.0
4 stars 0 forks source link

Empty (excluded?) directories get lost in restore #7

Open raimi opened 11 years ago

raimi commented 11 years ago

Noticed on using shaback to clone and adjust some machines: Empty and/or excluded directories get lost.

Problem (on Debian):

The actual problem are probably our (pi) default exclusion rules - but i wouldn't know a rule to exclude every file from /var/log/ retaining the subdir-structure...

Update 2013-01: This is problem! I just had to recover my entire root-filesystem and the recovery was incomplete. Special directories /dev /sys and /tmp were to created by the recovery process! The directories were part of the repo but they happened to be empty (because they are mount points or were just empty).

raimi commented 11 years ago

How to reproduce (probably, I did not try):

mkdir -p /foo/bar shaback backup /foo shaback restore /foo

Bug: empty directory "bar" is not created inside foo.

workflo commented 8 years ago

Depends on how you exclude directories: Exclude even the directory itself: addExcludePattern('/foo') Exclude what's inside the directory: addExcludePattern('/foo/*')