chiark / gitweb /
rsync-backup.in: Fix stupid bug in index deletion.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 20 Mar 2013 16:59:02 +0000 (16:59 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 20 Mar 2013 16:59:02 +0000 (16:59 +0000)
rsync-backup.in

index ac9cfdc36e32972a323f2bd034418e387422cc72..ec876ed9ce037a9b876eac6baa1a0c1e2d658b52 100644 (file)
@@ -170,7 +170,7 @@ delete_index () {
   if [ -f "$INDEXDB" ]; then
     sqlite3 "$INDEXDB" <<EOF
 DELETE FROM idx WHERE
-       host = '$host' AND fs = '$fs' AND $date = '$date';
+       host = '$host' AND fs = '$fs' AND date = '$date';
 EOF
   fi
 }
@@ -876,6 +876,10 @@ case $# in 0) ;; *) usage >&2; exit 1 ;; esac
 exec 8>&1
 
 . "$conf"
+case "$bkprc" in
+  0) $verbose "All backups successful" ;;
+  *) $verbose "Backups FAILED" ;;
+esac
 
 ###----- That's all, folks --------------------------------------------------