diff options
Diffstat (limited to 'backup')
-rwxr-xr-x | backup | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |