]> arthur.barton.de Git - backup-script.git/commitdiff
Use system "id" (filename) as target directory name
authorAlexander Barton <alex@barton.de>
Thu, 26 Sep 2013 16:45:17 +0000 (18:45 +0200)
committerAlexander Barton <alex@barton.de>
Thu, 26 Sep 2013 16:45:17 +0000 (18:45 +0200)
bin/backup-script
bin/backup-status

index f19992ef8eef656c57979586bda712bd44b29bdb..919677215fe1074b88168b26c37da28afe63d9c0 100755 (executable)
@@ -184,7 +184,7 @@ for f in $sys; do
                echo; continue
        fi
 
-       sys_target="$target/$system"
+       sys_target="$target/$fname"
        if [ "$DRYRUN" -eq 0 ]; then
                mkdir -p "$sys_target" >/dev/null 2>&1
                if [ $? -ne 0 ]; then
index ea120d6e06c7a5f299baf09eeccb6d827b0c2fe9..26efc142a53bd03e2cd138f821a01031e7222c00 100755 (executable)
@@ -102,7 +102,7 @@ for f in $sys; do
        [ "$system" = "localhost" -o "$system" = "127.0.0.1" ] && local=1
 
        destdir="$target"
-       target="$target/$system"
+       target="$target/$fname"
 
        [ -d "$target" ] || continue