Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BM_TARBALL_BLACKLIST with whitespace in path #82

Open
a200612 opened this issue Sep 22, 2016 · 3 comments
Open

BM_TARBALL_BLACKLIST with whitespace in path #82

a200612 opened this issue Sep 22, 2016 · 3 comments

Comments

@a200612
Copy link

a200612 commented Sep 22, 2016

Hi,

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

Regards
Joshua

@Vagrantin
Copy link

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

@gloomytrousers
Copy link

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
Copy link

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:

# If one or more of the targets contain a space, use the array:
declare -a BM_TARBALL_TARGETS
BM_TARBALL_TARGETS[0]="/etc"
BM_TARBALL_TARGETS[1]="/boot"
export BM_TARBALL_TARGETS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants