Data Backup and Recovery

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

TechiS
670 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
660 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
657 Views

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

Public