Restore part of a file from a snapshot with ONTAP
-
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...
You can use the volume snapshot partial-restore-file
command to restore a range of data from a snapshot to a LUN or to an NFS or SMB container file, assuming you know the starting byte offset of the data and the byte count. You might use this command to restore one of the databases on a host that stores multiple databases in the same LUN.
Beginning with ONTAP 9.12.1, partial restore is available for volumes using SnapMirror active sync.
-
List the snapshots in a volume:
volume snapshot show -vserver SVM -volume volume
Learn more about
volume snapshot show
in the ONTAP command reference.The following example shows the snapshots in
vol1
:clus1::> volume snapshot show -vserver vs1 -volume vol1 Vserver Volume Snapshot State Size Total% Used% ------- ------ ---------- ----------- ------ ----- ------ ----- vs1 vol1 hourly.2013-01-25_0005 valid 224KB 0% 0% daily.2013-01-25_0010 valid 92KB 0% 0% hourly.2013-01-25_0105 valid 228KB 0% 0% hourly.2013-01-25_0205 valid 236KB 0% 0% hourly.2013-01-25_0305 valid 244KB 0% 0% hourly.2013-01-25_0405 valid 244KB 0% 0% hourly.2013-01-25_0505 valid 244KB 0% 0% 7 entries were displayed.
-
Restore part of a file from a snapshot:
volume snapshot partial-restore-file -vserver SVM -volume volume -snapshot snapshot -path file_path -start-byte starting_byte -byte-count byte_count
The starting byte offset and byte count must be multiples of 4,096.
The following example restores the first 4,096 bytes of the file
myfile.txt
:cluster1::> volume snapshot partial-restore-file -vserver vs0 -volume vol1 -snapshot daily.2013-01-25_0010 -path /myfile.txt -start-byte 0 -byte-count 4096