aboutsummaryrefslogtreecommitdiff
path: root/handlers
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2006-03-15 00:06:19 +0000
committerMicah Anderson <micah@riseup.net>2006-03-15 00:06:19 +0000
commite94597ad053204c0a056505fe3f017ff325489fd (patch)
tree11bbc5cece415b99ceaf8733866b936833d5defa /handlers
parent0137962360bd449b4699e06bc9fad6285492f3a9 (diff)
downloadbackupninja-e94597ad053204c0a056505fe3f017ff325489fd.tar.gz
backupninja-e94597ad053204c0a056505fe3f017ff325489fd.tar.bz2
Harder than it looks at first! This appears to fix it, but please try it out.
Diffstat (limited to 'handlers')
-rw-r--r--handlers/dup4
-rw-r--r--handlers/rdiff4
2 files changed, 4 insertions, 4 deletions
diff --git a/handlers/dup b/handlers/dup
index 227ba8b..1f54652 100644
--- a/handlers/dup
+++ b/handlers/dup
@@ -118,15 +118,15 @@ set -o noglob
# excludes
for i in $exclude; do
- i=`readlink -f $i`
str="${i//__star__/*}"
+ i=`readlink -f ${i#}`
execstr="${execstr}--exclude '$str' "
done
# includes
for i in $include; do
- i=`readlink -f $i`
str="${i//__star__/*}"
+ i=`readlink -f ${i#}`
execstr="${execstr}--include '$str' "
done
diff --git a/handlers/rdiff b/handlers/rdiff
index 6cbe6fa..4aebfd3 100644
--- a/handlers/rdiff
+++ b/handlers/rdiff
@@ -174,15 +174,15 @@ set -o noglob
# TODO: order the includes and excludes
# excludes
for i in $exclude; do
- i=`readlink -f $i`
str="${i//__star__/*}"
+ i=`readlink -f ${i#}`
execstr="${execstr}--exclude '$str' "
done
# includes
for i in $include; do
[ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'"
- i=`readlink -f $i`
str="${i//__star__/*}"
+ i=`readlink -f $i`
execstr="${execstr}--include '$str' "
done