mirror of
https://github.com/laurent22/rsync-time-backup
synced 2024-11-10 14:14:16 +00:00
Simplify symlink creation.
This commit is contained in:
parent
4da7172099
commit
c3f15c7834
1 changed files with 2 additions and 4 deletions
|
@ -280,10 +280,8 @@ while [ "1" ]; do
|
|||
# Add symlink to last successful backup
|
||||
# -----------------------------------------------------------------------------
|
||||
|
||||
cd "$DEST_FOLDER"
|
||||
rm -f -- "latest"
|
||||
ln -s -- $(basename -- "$DEST") "latest"
|
||||
cd -
|
||||
rm -rf -- "$DEST_FOLDER/latest"
|
||||
ln -vs -- "$NOW" "$DEST_FOLDER/latest"
|
||||
|
||||
rm -- "$INPROGRESS_FILE"
|
||||
# TODO: grep for "^rsync error:.*$" in log
|
||||
|
|
Loading…
Reference in a new issue