]> git.sesse.net Git - backup.sh/blobdiff - backup.sh
Kill the sdx files; they are not very useful.
[backup.sh] / backup.sh
index c1c4439c44e73d9500cc175b14b959338c777712..7a273182b3186b55e4af03e2c8c15980d602e96a 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"
@@ -135,12 +135,9 @@ backup()
                # Update timestamp
                echo $DATEs > ../.date && touch -t $DATE ../.date
 
-               # Make a sorted file list as well
-               sort -k6 < $DATE.idx > $DATE.sdx
-
                # Fix permissions
                chmod 600 *tgz                      #only for us
-               chmod 644 *sdx *idx 2>/dev/null     #everyone can read
+               chmod 644 *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
@@ -284,7 +281,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