国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 操作系統 > 正文

用 ufsrestore指令從磁帶 restore 你的資料

2024-07-26 00:29:54
字體:
來源:轉載
供稿:網友
要從磁帶中 restore 資料,可以用 ufsrestore 這個指令.
這里教您如何從磁帶 restore 你的資料....

1.完全 restore 磁帶中的資料
依照下列步驟來 restore 一個完整備份的檔案系統......

注意: 這個程序將會完全損毀硬碟中原有的資料.

(1). 將你的身份變成 superuser
(2). 鍵入 init s 然後按 Enter. 系統將會進入 single-user mode.
(3). 鍵入 umount  mount-point 然後按 Enter. (這里的 mount-point 是你要 
     restore 的那個 device, 例如 /home1)
(4). 鍵入 newfs /dev/rdsk/cNtNdNsN 然後按 Enter. (這樣系統會建立一個全新
     的 file system.)
(5). 鍵入 mount /dev/rdsk/cNtNdNsN /home1 然後按 Enter. (系統會將你建好的
     file system  mount 到 /home1 這個目錄)
(6). 鍵入 cd mount-point 然後按 Enter. (你會進入你要 resoter 的目錄內)
(7). 把磁帶放入磁帶機中.
(8). 鍵入 ufsrestore rvf /dev/rmt/0h 然後按 Enter. (檔案系統將會完全的
     restore 到你的硬碟中)

2. 利用選擇的方式, restore 部份的檔案.

請依下列步驟來 restore 部份的檔案......

(1). 將你的身份變成 superuser
(2). 將磁帶變成防寫以策安全
(3). 把磁帶放入磁帶機
(4). 鍵入 cd /vat/tmp 然後按 Enter. (如果你要 restore 在別的目錄,也可
     cd 至別的目錄. 值得注意的是, 在這個目錄中, 不能存在有你所要 restore
     的目錄, 否則將無法 resotre)
(5). 鍵入 ufsresotre if /dev/rmt/unit 然後按 Enter. (這里的 unit 是指
     磁帶機的 device)
(6). 進入以後, 可以用 ls , cd 去看磁帶中有那些檔案.
(7). 使用 add filename ,把你要 resotre 的 filename 或 directory name
     加到你要 restore 的 list 中.
(8). 全部選完了以後, 鍵入 extract 開始 restore 資料.
(9). 接著會出現以下的 message...

You have not read any volumes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
Specify next volume #: 
    
     只需要鍵入 "1" 即可....
(10). restore 完了之後,會問你要不要 set owner/mode 
      一般來說,都是選 yes
(11). set 完了以後, 打 quit 離開即可.

ps. 如果你是用 /dev/rmt/0n ( Not rewind ) 的方式做 restore 的話,
    在 /dev/rmt/unit 的地方則是鍵入 /dev/rmt/0n. 但每次你只能看
    到一個 partition, 如果你要看到下一個 partition 的話, 只需打
    quit 離開, 再重覆執行相同的 ufsrestore 就可以了. 如果你在
    ufsrestore 是用 /dev/rmt/0 的話, 則會看到第一個 partition.

3. 直接 restore 部份的檔案

要直接 restore 部份的檔案, 可以不用 restore if 來選擇檔案而直接 restore
方法如下:

ufsrestore xf /dev/rmt/unit file-name

此處的 unit 及 file-name 都是如上面所說的一樣.
restore 完之後, 系統一樣會問你要不要 set owner/mode.
依照以上步驟即可直接 restore 檔案.
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 红桥区| 精河县| 阿尔山市| 贺兰县| 元阳县| 和田县| 淅川县| 阿克陶县| 瑞安市| 报价| 宁远县| 襄垣县| 普兰店市| 贡觉县| 昭苏县| 红河县| 南部县| 宣汉县| 丹棱县| 偏关县| 滦平县| 万载县| 天祝| 监利县| 靖远县| 临夏市| 龙泉市| 昭平县| 佛冈县| 金溪县| 库伦旗| 连云港市| 兰考县| 鱼台县| 天镇县| 疏勒县| 绥中县| 老河口市| 科尔| 阳城县| 永新县|