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

BM_TARBALL_BLACKLIST with whitespace in path #82

Open a200612 opened 8 years ago

a200612 commented 8 years ago

Hi,

how to exclude a directory with whitespace in its name from the backup?

Regards Joshua

Vagrantin commented 7 years ago

I'm experiencing the same issue :+1: Didn't found any way yet to do that…

gloomytrousers commented 5 years ago

Like this: /home/me/dir?with?spaces. The ? is expanded by the shell to match any character, including a space.

HOWEVER this appears to expose another bug, at least in the slightly old version packaged in Fedora; I've submitted a patch at https://bugzilla.redhat.com/show_bug.cgi?id=1656423 and will submit is as a PR here soon, if it's not already in fixed.

alexislefebvre commented 3 years ago

It may work with this syntax:

declare -a BM_TARBALL_BLACKLIST
BM_TARBALL_BLACKLIST[0]="/etc/nospace/"
BM_TARBALL_BLACKLIST[1]="/etc/there is space"
export BM_TARBALL_BLACKLIST

This syntax works for BM_TARBALL_TARGETS:

https://github.com/sukria/Backup-Manager/blob/4eea33df9cf06947548aba9d260451ef5659d932/backup-manager.conf.tpl#L149-L155