sukria / Backup-Manager

Versatile yet easy to use command line backup tool for GNU/Linux. Suitable for desktop and servers.
http://www.backup-manager.org/
GNU General Public License v2.0
279 stars 90 forks source link

backup-manager will omit files unintended #25

Closed mschnbeck closed 7 years ago

mschnbeck commented 11 years ago

Due to backup-manager making excludes relative to the actual target-path, tar will leave out identically named directories anywhere in the target space. Example: target is /var, exclude is /var/archives, then /var/lib/mailman/archives will be omitted also. To get the intended behaviour comment out the lines

            pattern="${pattern#$target}"
            length=$(expr length $pattern)
            pattern=$(expr substr $pattern 2 $length)

in file lib/backup_methods.sh near line 259 (function __get_flags_relative_blacklist)