本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。
從 NFS 或 SMB 用戶端上的快照還原檔案
貢獻者
-
此文件 PDF 的網站
-
NAS儲存管理
-

個別的 PDF 文件集合
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
NFS 或 SMB 用戶端上的使用者可以直接從快照還原檔案,而無需儲存系統管理員介入。
檔案系統中的每個目錄都包含一個子目錄,命名為 NFS 和 SMB 使用者可存取的子目錄 .snapshot
。 `.snapshot`子目錄包含與磁碟區快照對應的子目錄:
$ ls .snapshot daily.2017-05-14_0013/ hourly.2017-05-15_1106/ daily.2017-05-15_0012/ hourly.2017-05-15_1206/ hourly.2017-05-15_1006/ hourly.2017-05-15_1306/
每個子目錄都包含快照所參照的檔案。如果使用者不小心刪除或覆寫檔案,他們可以將檔案從 Snapshot 子目錄複製到讀寫目錄,將檔案還原到父讀寫目錄:
$ ls my.txt ls: my.txt: No such file or directory $ ls .snapshot daily.2017-05-14_0013/ hourly.2017-05-15_1106/ daily.2017-05-15_0012/ hourly.2017-05-15_1206/ hourly.2017-05-15_1006/ hourly.2017-05-15_1306/ $ ls .snapshot/hourly.2017-05-15_1306/my.txt my.txt $ cp .snapshot/hourly.2017-05-15_1306/my.txt . $ ls my.txt my.txt