]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
Small logging tweaks.
[backup.sh] / backup.sh
index c1c4439c44e73d9500cc175b14b959338c777712..46f72c3ae64c8331fd46e7efa41c39bacbf74fff 100755 (executable)
--- a/backup.sh
+++ b/backup.sh
@@ -76,7 +76,7 @@ umask 027
 
 backup()
 {
-       infomsg "$computer:$filesystem $backuplevel backup\n"
+       infomsg "$computer:$filesystem $backuplevel backup"
 
        localsnar="${storagedir}/${computer}/${sfilesystem}/.incremental.snar"
        remotesnar="/root/.backup/${sfilesystem}.snar"
@@ -284,7 +284,7 @@ if ! ssh root@$computer "[ ! -f /root/.backup/postexec ] || /bin/bash -x /root/.
 fi
 
 # Use warn so that we will get an email even on success.
-warnmsg "$computer: Backup completed successfully."
+warnmsg "Backup completed successfully."
 
 # Remove lockfile
 rm $LOCKFILE