]> arthur.barton.de Git - bup.git/commit - t/test.sh
Add support for "bup restore --exclude-rx <pattern> ...".
authorRob Browning <rlb@defaultvalue.org>
Sat, 18 Aug 2012 20:35:23 +0000 (15:35 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 24 Mar 2013 00:57:29 +0000 (19:57 -0500)
commit76b12e16dcf623973c31329d6f8234907d6a1074
tree310adb20bcbba9aa04c1a6be1893511d85de7554
parentcb354ed6baf6699f92717f42eb70d9bb6ff82933
Add support for "bup restore --exclude-rx <pattern> ...".

When --exclude-rx <pattern> is provided to bup restore, don't restore
any path matching <pattern>, which must be a Python regular expression
(http://docs.python.org/library/re.html).  The pattern will be
compared against the full path, without anchoring, so "x/y" will match
"ox/yard" or "box/yards".  To exclude the contents of /tmp, but not
the directory itself, use "^/tmp/.".

You may check the behavior at runtime by setting BUP_DEBUG=2 in the
environment.

Thanks to Zoran Zaric <zz@zoranzaric.de> for reporting a bug in an
earlier version of this patch.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>
Documentation/bup-restore.md
cmd/restore-cmd.py
t/test.sh