You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
restic 0.8.0
compiled with go1.9.2 on linux/amd64
Hello,
as a first time user I have a hard time finding out how exactly --exclude works. The docs are very terse.
Experimenting found the following specifics:
Matching is against a complete pathname component (subdirectory name or filename) (foo does not match xfoo, it matches /1/2/foo, /foo/1/2 and /1/foo/2.
Slashes require some care:
Trailing slashes are ignored. "file/" matches a file named "file"
A leading slash anchors the string, the top path component has to match. e.g. assuming we are backing up /tmp/xxx-input and want to exclude /tmp/xxx-input/foo/file2. ...
Thanks for taking the time to report this. It's actually a duplicate of #396, there you can find several issues with examples. I haven't had the time yet to distill these into the docs.
Hello,
Output of
restic version
restic 0.8.0
compiled with go1.9.2 on linux/amd64
Hello,
as a first time user I have a hard time finding out how exactly --exclude works. The docs are very terse.
Experimenting found the following specifics:
Matching is against a complete pathname component (subdirectory name or filename) (foo does not match xfoo, it matches /1/2/foo, /foo/1/2 and /1/foo/2.
Slashes require some care:
Trailing slashes are ignored. "file/" matches a file named "file"
A leading slash anchors the string, the top path component has to match. e.g. assuming we are backing up /tmp/xxx-input and want to exclude /tmp/xxx-input/foo/file2. ...
Is there anything else I have missed? I can try to come up with a patch for the docs, but only after my understanding has been improved. ;-)
The text was updated successfully, but these errors were encountered: