X-Git-Url: https://git.sesse.net/?p=backup.sh;a=blobdiff_plain;f=backup.sh;h=307a14f23aae338f15b76d4c795aa0823ccdd180;hp=221e371fd1f070e187d9f8cf5f2e6de483be951f;hb=040ea36adf3804e541e9973d88c2168da11e8eae;hpb=eaa627ca7a17b7e6643753f91310f7ffc1fb9976 diff --git a/backup.sh b/backup.sh index 221e371..307a14f 100755 --- a/backup.sh +++ b/backup.sh @@ -68,9 +68,6 @@ echo `date`": Backup run starting" >&2 umask 027 -#selve backupen -# krever at noen variabler er satt -# krever at vi er i rett katalog backup() { @@ -133,7 +130,7 @@ backup() # Update timestamp echo $DATEs > ../.date && touch -t $DATE ../.date - # Make a sorted filelist as well + # Make a sorted file list as well sort -k6 < $DATE.idx > $DATE.sdx # Fix permissions @@ -214,7 +211,7 @@ backup() fi fi - # Try to run preexec if it exist + # Try to run preexec if it exists if ! ssh root@$computer "[ ! -f ~/.backup/preexec ] || /bin/bash -x ~/.backup/preexec" >&2; then echo `date`" $computer: Could not run $computer:~/.backup/preexec" die