summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Arthur <mumrah@gmail.com>2013-11-13 13:29:08 -0500
committerDavid Arthur <mumrah@gmail.com>2013-11-13 13:29:08 -0500
commitbda24be00314f7146bc5064193497f640004faa4 (patch)
treee7a3d2f601eb16aa4ec99fbf282cc604b9c0cbad
parent8a2e91813b0ccd8989870a87e36ec3b609942afa (diff)
Add a "latest" symlink when backup is successful
-rw-r--r--rsync_tmbackup.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 754189f..ea5fb8f 100644
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -226,6 +226,7 @@ while [ "1" ]; do
fi
if [ "$RSYNC_EXIT_CODE" != "0" ]; then
+ ln -s $DEST $DEST/../latest
fn_log_error "Exited with error code $RSYNC_EXIT_CODE"
exit $RSYNC_EXIT_CODE
fi