summaryrefslogtreecommitdiff
path: root/rsync_tmbackup.sh
diff options
context:
space:
mode:
authorRobert Bruce Park <r@robru.ca>2013-11-26 12:45:12 -0800
committerRobert Bruce Park <r@robru.ca>2013-11-26 12:45:12 -0800
commit45875055a43803c0fd372e4948e91ca2db80afab (patch)
treebae3b155c27fd3e18e244492c750537ee22b527c /rsync_tmbackup.sh
parent16fd955e6ce1cc90f7e5f0842f50d702ed60adc5 (diff)
Simpler absolute paths.
Diffstat (limited to 'rsync_tmbackup.sh')
-rw-r--r--rsync_tmbackup.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh
index 70789ca..0d087bc 100644
--- a/rsync_tmbackup.sh
+++ b/rsync_tmbackup.sh
@@ -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