Data Backup and Recovery

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

TechiS

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

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

Ontapforrum

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

Public