Merge pull request #15 from mumrah/master
Add a "latest" symlink when backup is successful
This commit is contained in:
@@ -226,6 +226,8 @@ while [ "1" ]; do
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$RSYNC_EXIT_CODE" != "0" ]; then
|
if [ "$RSYNC_EXIT_CODE" != "0" ]; then
|
||||||
|
rm -f $DEST_FOLDER/latest
|
||||||
|
ln -s $DEST $DEST_FOLDER/latest
|
||||||
fn_log_error "Exited with error code $RSYNC_EXIT_CODE"
|
fn_log_error "Exited with error code $RSYNC_EXIT_CODE"
|
||||||
exit $RSYNC_EXIT_CODE
|
exit $RSYNC_EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user