Restore a file from a Snapshot copy on an NFS or SMB client
Suggest changes
-
PDF of this doc site
- Cluster administration
-
Volume administration
- Logical storage management with the CLI
-
NAS storage management
- Configure NFS with the CLI
- Manage NFS with the CLI
-
Manage SMB with the CLI
- Manage file access using SMB
- Security and data encryption
- Data protection and disaster recovery
Collection of separate PDF docs
Creating your file...
This may take a few minutes. Thanks for your patience.
Your file is ready
A user on an NFS or SMB client can restore a file directly from a Snapshot copy without the intervention of a storage system administrator.
Every directory in the file system contains a subdirectory named .snapshot
accessible to NFS and SMB users. The .snapshot
subdirectory contains subdirectories corresponding to the Snapshot copies of the volume:
$ 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/
Each subdirectory contains the files referenced by the Snapshot copy. If users accidentally delete or overwrite a file, they can restore the file to the parent read-write directory by copying the file from the Snapshot subdirectory to the read-write directory:
$ 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