From: Sergey Poznyakoff Date: Thu, 3 Mar 2005 23:16:03 +0000 (+0000) Subject: (restore_fs): Use root_fs X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=fdbb1d8c7c9db3e82ea2f3aaac6b1d15139b8fc8;p=chaz%2Ftar (restore_fs): Use root_fs --- diff --git a/scripts/restore.in b/scripts/restore.in index 88ab1fa..c35bdeb 100644 --- a/scripts/restore.in +++ b/scripts/restore.in @@ -111,6 +111,7 @@ EOF restore_fs() { fs="`echo \"${1}\" | sed -e 's/^.*://'`" + fs=`root_fs $fs` fsname="`echo \"${1}\" | sed -e 's/\//:/g'`" remotehost="`expr \"${1}\" : '\([^/][^/]*\):.*'`" if [ -z "$remotehost" ]; then @@ -146,7 +147,7 @@ restore_fs() backup_host ${remotehost} \ "--listed=\"$FILE\"" \ "--label=\"$LABEL\"" \ - -C ${ROOT_FS-/}$fs + -C $fs ${RESTORE_END-:} $level $remotehost $fs $fsname done } @@ -233,4 +234,4 @@ fi) 2>&1 | tee -a "${LOGFILE}" - \ No newline at end of file +