mirror of
https://github.com/laurent22/rsync-time-backup
synced 2025-03-04 23:07:19 +00:00
Simpler absolute paths.
This commit is contained in:
parent
16fd955e6c
commit
45875055a4
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ while [ "1" ]; do
|
|||
else
|
||||
# If the path is relative, it needs to be relative to the destination. To keep
|
||||
# it simple, just use an absolute path. See http://serverfault.com/a/210058/118679
|
||||
PREVIOUS_DEST=`cd \`dirname -- "$PREVIOUS_DEST"\`; pwd`"/"`basename -- "$PREVIOUS_DEST"`
|
||||
PREVIOUS_DEST="$(cd "$PREVIOUS_DEST"; pwd)"
|
||||
fn_log_info "Previous backup found - doing incremental backup from $PREVIOUS_DEST"
|
||||
LINK_DEST_OPTION="--link-dest=$PREVIOUS_DEST"
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue