diff options
author | intrigeri <intrigeri@boum.org> | 2006-10-07 00:40:58 +0000 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2006-10-07 00:40:58 +0000 |
commit | d395ae94a5657afcc878adcd851d8e8c53df98de (patch) | |
tree | 0af29159f8dfe2e0aa3b5f9a169884331c014777 /handlers/rdiff | |
parent | 947309699dfca7a5db6d8148d46627d502a98d42 (diff) | |
download | backupninja-d395ae94a5657afcc878adcd851d8e8c53df98de.tar.gz backupninja-d395ae94a5657afcc878adcd851d8e8c53df98de.tar.bz2 |
dup, rdiff: implemented and documented simpler and clearer symlinks/globbing
behaviour, as proposed on
http://lists.riseup.net/www/arc/backupninja/2006-07/msg00008.html
Diffstat (limited to 'handlers/rdiff')
-rw-r--r-- | handlers/rdiff | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/handlers/rdiff b/handlers/rdiff index 79577c6..bdc1cbd 100644 --- a/handlers/rdiff +++ b/handlers/rdiff @@ -179,23 +179,13 @@ symlinks_warning="Maybe you have mixed symlinks and '*' in this statement, which # excludes for i in $exclude; do str="${i//__star__/*}" - str=`readlink -f $str` - if [ -n "$str" ]; then - execstr="${execstr}--exclude '$str' " - else - warning "exclude statement '${i//__star__/*}' will be ignored. $symlinks_warning" - fi + execstr="${execstr}--exclude '$str' " done # includes for i in $include; do [ "$i" != "/" ] || fatal "Sorry, you cannot use 'include = /'" str="${i//__star__/*}" - str=`readlink -f $str` - if [ -n "$str" ]; then - execstr="${execstr}--include '$str' " - else - warning "include statement '${i//__star__/*}' will be ignored. $symlinks_warning" - fi + execstr="${execstr}--include '$str' " done # vsinclude @@ -203,7 +193,7 @@ if [ $usevserver = yes ]; then for vserver in $vsnames; do for vi in $vsinclude; do str="${vi//__star__/*}" - str=`readlink -f $VROOTDIR/$vserver$str` + str="$VROOTDIR/$vserver$str" if [ -n "$str" ]; then execstr="${execstr}--include '$str' " else |