aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbackup6
1 files changed, 6 insertions, 0 deletions
diff --git a/backup b/backup
index 2588d0a..597be80 100755
--- a/backup
+++ b/backup
@@ -40,3 +40,9 @@ fi
echo "rsync $RSYNC_OPTS ${1%/}/* $2" >> "$LOG_FILE"
rsync $RSYNC_OPTS ${1%/}/* $2
+
+if [ $? -eq 0 ]; then
+ echo "Backup successful." >> "$LOG_FILE"
+else
+ echo "Backup exited with code $?"
+fi