diff options
Diffstat (limited to 'handlers')
-rw-r--r-- | handlers/tar.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/handlers/tar.in b/handlers/tar.in index eb5942b..7497306 100644 --- a/handlers/tar.in +++ b/handlers/tar.in @@ -72,11 +72,13 @@ debug "Running backup: " $TAR -c -p -v $compress_option $exclude_options \ -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ $includes +if [ ! $test ]; then $TAR -c -p -v $compress_option $exclude_options \ -f "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`".$EXTENSION" \ $includes \ > "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.list \ 2> "$backupdir/$backupname-"`$DATE "+$DATEFORMAT"`.err +fi [ $? -ne 0 ] && fatal "Tar backup failed" |