X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=backup.sh;h=aceb9f3a928cb951583388ab549475f34eea19e2;hb=3aacdbe5d8a8d6c813c085efbb09669afcb6f910;hp=a480491d029d58caf92b4f274fbd479f599357f5;hpb=f20bc47af938d2ba717feceb430d3a86282e48c8;p=backup.sh diff --git a/backup.sh b/backup.sh index a480491..aceb9f3 100755 --- a/backup.sh +++ b/backup.sh @@ -93,8 +93,7 @@ unixcomputers=`cat $confdir/computers.unix \ # Backup only one computer, from command line? if [ $1 ] ; then unixcomputers=$1 -fi; - +fi #selve backupen # krever at noen variabler er satt @@ -148,6 +147,9 @@ backup() chmod 600 *tgz #only for us chmod 644 *sdx *idx 2>/dev/null #everyone can read + # Let the remote computer know that we ran a successful backup (for nagios) + ssh root@$computer touch $filesystem/.lastbackup + else # Something wrong happened. rm $TARFILE