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

Example path for --exclude-from #5236

Open
tuxick opened this issue Jun 24, 2020 · 2 comments
Open

Example path for --exclude-from #5236

tuxick opened this issue Jun 24, 2020 · 2 comments

Comments

@tuxick
Copy link

@tuxick tuxick commented Jun 24, 2020

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

ISSUE

Describe the problem you're observing.

I found it quite hard to find out how to use/allow spaces in --exclude-from file, one extra example in manual/help might help a lot:

No need to escape spaces

/mnt/c/System Volume Information

(not having to escape spaces is quite counterintuitive :)

@ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented Jul 7, 2020

Well, if you consider that parsing of arguments and splitting at spaces is a feature of your shell (and quoting is for working around that feature), it is quite intuitive.

The contents of --exclude-from or --patterns-from files are not processed by your shell, but directly read by borg.

OTOH, when entering borg ... <arguments> on the command line or in a shell script, the arguments are processed by the shell.

@Gu1nness
Copy link
Contributor

@Gu1nness Gu1nness commented Nov 4, 2020

Taking this one, documenting both patterns files and exclude files.
From what I understand (and from my tests) adding a space is not a problem since everything is handled by borg which reads one entry per line.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.