mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-12-15 06:32:30 +00:00
Merge master.
This commit is contained in:
commit
f5a4275a04
1 changed files with 9 additions and 0 deletions
|
@ -279,6 +279,15 @@ while [ "1" ]; do
|
|||
exit $RSYNC_EXIT_CODE
|
||||
fi
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Add symlink to last successful backup
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
cd "$DEST_FOLDER"
|
||||
rm -f -- "latest"
|
||||
ln -s -- $(basename -- "$DEST") "latest"
|
||||
cd -
|
||||
|
||||
rm -- "$INPROGRESS_FILE"
|
||||
# TODO: grep for "^rsync error:.*$" in log
|
||||
fn_log_info "Backup completed without errors."
|
||||
|
|
Loading…
Reference in a new issue