NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Data Protection

How to restore File from Snapshot which is present in sub directories?

TechiS
2,419 Views

Mates,

 

I could could restore single file from snapshot which was present in the parent directory of volume, but when I am trying to restore file which is inside directories I am not able to restore it, getting error that either file or snapshot not available.

 

so 

So from snapshot 

/file1  -I could restore

/dir1/dir2/file2 - I could not restore

 

Please correct syntax if any.

 

Thanks

 

 

 

2 REPLIES 2

Ontapforrum
2,409 Views

Could you share with us:
1) Error you are receiving?
2) Full cmd Syntax ?

 

Example:
::> volume snapshot restore-file -vserver svm_smb -volume vol_smbcifs -snapshot snap.2022-01-14_102047 -path /folder1/folder2/test.txt

 

Note:  In the Example, make sure it is test.txt and not just test.


KB:
https://kb.netapp.com/Advice_and_Troubleshooting/Data_Protection_and_Security/SnapRestore/How_to_restore_a_single_file_from_a_volume_snapshot_in_ONTAP...


Restoring from client side:
https://docs.netapp.com/us-en/ontap/data-protection/snapshot-copies-work-concept.html

Ontapforrum
2,406 Views

Most likely you just gave the file name (not extension *.txt)

Public