ONTAP Discussions

snap restore question

SUMESHADIYAPURATH
3,246 Views

Team

I am experimenting with snap restore. for example,

  1. Created a file under /vol/vol_1/ called sumesh.txt
  2. took snapshot
  3. deleted file
  4. tried to do a restore with snap restore and it was successful

Secondly

  1. created a folder under /vol/vol_1 called test
  2. created  file in test
  3. deleted the file
  4. tried to do a restore with snap restore as snap restore -t file /vol/vol_1/test/filename.txt

       Selected the snapshot

       Then it comes with the following Error

File does not exist in snapshot

Can't we restore  a file from snapshot ? please advise

Suemsh

4 REPLIES 4

SANJESHUF
3,246 Views

Have you taken a new snapshot or using the same old one

SUMESHADIYAPURATH
3,246 Views

Yes. I have taken Sorry. I forgot to include  that , the steps are as follows

  1. created a folder under /vol/vol_1 called test
  2. created  file in test
  3. Take a snaphot
  4. deleted the file
  5. tried to do a restore with snap restore as snap restore -t file /vol/vol_1/test/filename.txt

       Selected the snapshot

       Then it comes with the following Error

SANJESHUF
3,246 Views
  • You cannot use SnapRestore to revert a single file if that file is a directory or a symbolic link, or contains NT streams.

Refer https://library.netapp.com/ecmdocs/ECMP1196991/html/GUID-35C9A4BA-02BA-4965-A366-698C1299E29D.html

SUMESHADIYAPURATH
3,246 Views

Hi Sanjeev / Team

Thanks a lot.  i am aware of this but there are no NTFS streams associated with this. I know both Qtrees and directores can not be restored.

Does Snaprestore allow to restore a single file from a directory?

Secondly,  Is there a GUI utility for this?

Thanks

Sumesh

Public