Create "latest" symlink pointing at the most recent completed backup.

This commit is contained in:
Robert Bruce Park
2013-11-15 12:01:52 -08:00
parent f011e1a7ab
commit 28735b1815
+4
View File
@@ -279,6 +279,10 @@ while [ "1" ]; do
exit $RSYNC_EXIT_CODE
fi
# Force creation of 'latest' symlink pointing at the new $DEST.
rm -rf -- "$DEST_FOLDER/latest"
ln -vs "$(basename "$DEST")" "$DEST_FOLDER/latest"
rm -- "$INPROGRESS_FILE"
# TODO: grep for "^rsync error:.*$" in log
fn_log_info "Backup completed without errors."