]> git.sesse.net Git - backup.sh/commitdiff
Slightly more consistent coding style.
authorSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:46:09 +0000 (00:46 +0200)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sat, 4 Oct 2014 22:46:09 +0000 (00:46 +0200)
backup.sh

index 0e230399b4ed6be81fe2767139520ce439642e49..c3143d71cd78f19495478b372369201a6a929696 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -202,8 +202,7 @@ if ! ssh root@$computer "[ ! -f /root/.backup/preexec ] || /bin/bash -x /root/.b
        diemsg "Could not run $computer:/root/.backup/preexec"
 fi
 
-for filesystem in $filesystems
-do
+for filesystem in $filesystems; do
        # Remove / and $ (for Windows) for path names
        sfilesystem=`echo $filesystem | tr '\/\$' '__'`
 
@@ -254,8 +253,7 @@ do
        fi
 
        # Delete old full backups
-       for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail -n +$mf`
-       do
+       for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail -n +$mf`; do
                prefix=`echo $full | sed "s/\.[^.]*$//"`
                echo `date`": $computer:$filesystem Deleting full backup $prefix" >&2
                rm $prefix*