]> Dogcows Code - chaz/tar/commitdiff
(restore_fs): Use root_fs
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 3 Mar 2005 23:16:03 +0000 (23:16 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 3 Mar 2005 23:16:03 +0000 (23:16 +0000)
scripts/restore.in

index 88ab1fa9675530f415cbbfb72c25de84269f3630..c35bdebe7862538fc9b5b3676ddc89d0897ef2cb 100644 (file)
@@ -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
+       
This page took 0.023614 seconds and 4 git commands to generate.