From 5fe5b6b339d20b5c19fdd7fbd7d12747b7f07ecb Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 19 Nov 2016 22:26:07 +0100 Subject: [PATCH] docs: different pattern matching for --exclude, fixes #1779 --- docs/usage.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/usage.rst b/docs/usage.rst index 9a0dc7108..61b469b15 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -387,6 +387,15 @@ Examples # As above, but add nanoseconds $ borg create /path/to/repo::{hostname}-{user}-{now:%Y-%m-%dT%H:%M:%S.%f} ~ +Notes +~~~~~ + +- the --exclude patterns are not like tar. In tar --exclude .bundler/gems will + exclude foo/.bundler/gems. In borg it will not, you need to use --exclude + '*/.bundler/gems' to get the same effect. See ``borg help patterns`` for + more information. + + .. include:: usage/extract.rst.inc Examples