From e0c2f1d0cef706c3a87aa3fb6d17c01e117c66ad Mon Sep 17 00:00:00 2001 From: Marco Amadori Date: Fri, 6 Jun 2008 23:03:27 +0200 Subject: [PATCH] live-snapshot: fixes snapshotting from resync string. * Now it properly overwrites previous snapshot instead of just putting it in the $PWD. --- bin/live-snapshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/live-snapshot b/bin/live-snapshot index dc1fa6d..b523c4a 100755 --- a/bin/live-snapshot +++ b/bin/live-snapshot @@ -206,7 +206,7 @@ Defaults () then SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | cut -f1 -d ':') SNAP_DEV=$(echo "${SNAP_RESYNC_STRING}" | cut -f2 -d ':') - DEST=$(echo "${SNAP_RESYNC_STRING}" | cut -f3 -d ':') + DEST="${MOUNTP}/$(echo ${SNAP_RESYNC_STRING} | cut -f3 -d ':')" case "${DEST}" in *.cpio.gz) -- 2.1.4