ONTAP Discussions

How To restore snapshot to another volume

merouane2009
15,595 Views

Hi ,

I just need your help to restore data from one snapshot from source volume VOLTESTRESTORE to different volume location VOLTESTDESTINATION

I have one snapshut ready SNAP3 from VOLTESTRESTORE and I need to restore it on another volume VOLTESTDESTINATION

should I use snapshot or another command ?

I tried using this command line but it give error every time

snap restore -t vol -s SNAP3 -r /vol/VOLTESTRESTORE/ /vol/VOLTESTDESTINATION

Thanks

8 REPLIES 8

peter_lehmann
15,595 Views

Hi

"snap restore" ONLY works within the same volume.

If you want tot get data from a snapshot within a volume to another volume, yoy can either mount or connect to a share and then copy with Explroer or "cp" on unix.

If this is a LUN, connect to the LUN in the snapshot and again, copy the data with the host.

Hope this helps,

Peter

merouane2009
15,595 Views

Hi Peter,

Yes problem data is arround 2 TB and I need to run that outside network

So I just need to use our filer options to make this copy faster

thanks

peter_lehmann
15,595 Views

If you have a flexclone license and enough free space in the aggregate, I would clone the volume, then split it off and run the "snap restore" in the newly split volume.

If this data is good, switch over to the new volume.

mabye thats a way?

peter_lehmann
15,595 Views

If no flexclone license, you could use the "vol clone" command...

merouane2009
15,595 Views

Did vol clone can use specific snapshot version because user is asking for secific version of data

thanks

peter_lehmann
15,595 Views

Yes, you can.

vol clone create <vol-name> [-s none | file | volume] [-f] -b <parent_flexvol> [<parent_snapshot>]

  - create a new flexible volume that is a clone of <parent_flexvol>

Just provide the SNAP3 as the [<parent_snapshot>]

Regards,

Peter

paulstringfellow
15,595 Views

As far as I know you can’t restore a snapshot to a different volume, that snapshots are volume based.

What are you trying to achieve as you could do something like a vol copy or a flexclone to allow you to do this…

But as far as I know you can’t restore snapshots to a different volume…

merouane2009
15,595 Views

Hi Paul

what about this option b cause am confusing between

restore-as-path

restore-from-path and vol name

snap restore [-A | -V] [-f] [-t vol | file] [-s <snapshot-name>] [-r <restore-as-path>] <vol-name> | <restore-from-path>

thanks

Public