mirror of
https://github.com/laurent22/rsync-time-backup
synced 2025-03-04 23:07:19 +00:00
Add a "latest" symlink when backup is successful
This commit is contained in:
parent
8a2e91813b
commit
bda24be003
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue