From: Steinar H. Gunderson Date: Sun, 5 Apr 2020 10:07:29 +0000 (+0200) Subject: Move the directory argument last, since --exclude-from is a positional argument in... X-Git-Url: https://git.sesse.net/?p=backup.sh;a=commitdiff_plain;h=0e137607eaa0ac9cc1bc476110b83ff4149c89d5 Move the directory argument last, since --exclude-from is a positional argument in newer versions of tar. --- diff --git a/backup.sh b/backup.sh index e64312f..e649f36 100755 --- a/backup.sh +++ b/backup.sh @@ -135,8 +135,8 @@ backup() # Pipe the stuff over ssh to ourselves, run pee to cat the contents to a # file and build a file list, respectivly. TARFILE=$DATE.tmp - TARCMD="ssh -n $username@$computer \"$nice tar --one-file-system --use-compress-program $fscompressor -cf - -C $filesystem . $lastcmd \ - --exclude-from=$remotehome/.backup/exclude\" | pee \"$storageprogram > $TARFILE\" \"$decompressor | tar tvf -\"" + TARCMD="ssh -n $username@$computer \"$nice tar --one-file-system --use-compress-program $fscompressor -cf - -C $filesystem $lastcmd \ + --exclude-from=$remotehome/.backup/exclude\" . | pee \"$storageprogram > $TARFILE\" \"$decompressor | tar tvf -\"" infomsg "Running $TARCMD" eval $TARCMD > $DATE.idx