aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-09-12 23:26:08 +0200
committerintrigeri <intrigeri@boum.org>2010-09-12 23:26:08 +0200
commitc0c02efafd0eb34355aa72e2f14f22ccd81018e9 (patch)
tree341d8c3a272265fb8fdb9728c1e6c0eceedfac27 /handlers
parent34e439ea7bd26f1cbe6741c19319a3d9182356ea (diff)
downloadbackupninja-c0c02efafd0eb34355aa72e2f14f22ccd81018e9.tar.gz
backupninja-c0c02efafd0eb34355aa72e2f14f22ccd81018e9.tar.bz2
rdiff: support reading include/exclude patterns from files.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/rdiff.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/handlers/rdiff.in b/handlers/rdiff.in
index 60386fa..e391edd 100644
--- a/handlers/rdiff.in
+++ b/handlers/rdiff.in
@@ -219,7 +219,10 @@ SAVEIFS=$IFS
IFS=$(echo -en "\n\b")
for i in $exclude; do
str="${i//__star__/*}"
- execstr="${execstr}--exclude '$str' "
+ case "$str" in
+ @*) execstr="${execstr}--exclude-globbing-filelist '${str#@}' " ;;
+ *) execstr="${execstr}--exclude '$str' " ;;
+ esac
done
IFS=$SAVEIFS
# includes
@@ -228,7 +231,10 @@ IFS=$(echo -en "\n\b")
for i in $include; do
[ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
str="${i//__star__/*}"
- execstr="${execstr}--include '$str' "
+ case "$str" in
+ @*) execstr="${execstr}--include-globbing-filelist '${str#@}' " ;;
+ *) execstr="${execstr}--include '$str' " ;;
+ esac
done
IFS=$SAVEIFS