Skip to content

Commit

Permalink
avoid using asterisks in default includes
Browse files Browse the repository at this point in the history
bup doesn't do file name globbing by itself for "included" paths. we
need to manually specify all possibilities. Luckily these are quite
simple to list.
  • Loading branch information
lelutin committed May 24, 2015
1 parent 47912e3 commit df20300
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/bup.helper.in
Expand Up @@ -307,7 +307,7 @@ bup_wizard() {

# Global variables whose '*' shall not be expanded
set -o noglob
bup_includes=(/etc /var/backups /var/spool/cron/crontabs /root /home /usr/local/*bin /var/lib/dpkg/status*)
bup_includes=(/etc /var/backups /var/spool/cron/crontabs /root /home /usr/local/bin /usr/local/sbin /var/lib/dpkg/status /var/lib/dpkg/status-old)
# Normally, bup automatically excludes its own local repository to avoid
# re-entrant backups (backing up the backup) so we shouldn't need to specify
# the bupdir in the excludes
Expand Down

0 comments on commit df20300

Please sign in to comment.