浏览代码

(restore_fs): Use root_fs

Sergey Poznyakoff 20 年之前
父节点
当前提交
fdbb1d8c7c
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      scripts/restore.in

+ 3 - 2
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}"
     
     
           
-	
+