diff --git a/backup.sh b/backup.sh index a0a63f8..e48cc48 100755 --- a/backup.sh +++ b/backup.sh @@ -24,7 +24,7 @@ SERVER=cheesecake # Path where the backup will be placed # Note that this is on the client, using autofs -BACKUP_DIRECTORY=/net/cheesecake/srv/Backups/`hostname -f` +BACKUP_DIRECTORY=/net/cheesecake/backups/`hostname -f` # Path on this machine where output should be written LOG=/tmp/backup.log @@ -48,5 +48,5 @@ if [ $? != 0 ]; then fi -rsync -axvh --inplace --delete --delete-excluded --exclude-from=$EXCLUDE $BACKUP $BACKUP_DIRECTORY >> $LOG +rsync -axvhz --inplace --delete-delay --delete-excluded --exclude-from=$EXCLUDE $BACKUP $BACKUP_DIRECTORY >> $LOG notify-send "Backup finished!"