]> git.sesse.net Git - backup.sh/commitdiff
Move the directory argument last, since --exclude-from is a positional argument in... master
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 5 Apr 2020 10:07:29 +0000 (12:07 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 5 Apr 2020 10:07:29 +0000 (12:07 +0200)
backup.sh

index e64312f529f68b3021a2751c2c75ef186092f85a..e649f36b11b5ff45a4f93cd32e0135c67ebdf7a3 100755 (executable)
--- 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