ONTAP Discussions
ONTAP Discussions
Our company recently adopted the NetApp filer and I am creating DR documentation. I have been able to understand everything about snap restore except the -t file option. We have a CIFS setup and I am able to restore a complete volume or a single file but I can not restore a single folder. I keep getting an "inappropriate file type or format" error. I just want to know if restoring a folder is possible using the snap restore command. The command I am using is below for Data OnTap 8.2.1.RC1.
snap restore -t file -s nightly.2 /vol/maps/region3/folder1
Solved! See The Solution
Glenn -
Snap restore is by volume or file.
To restore a directory you could clone the volume from a snapshot, and then copy the directory back from the clone.
I hope this response has been helpful to you.
At your service,
Eugene E. Kashpureff
Independent NetApp Consultant, K&H Research http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, Unitek Education http://www.unitek.com/training/netapp/
(P.S. I appreciate points for helpful or correct answers.)
Glenn -
Snap restore is by volume or file.
To restore a directory you could clone the volume from a snapshot, and then copy the directory back from the clone.
I hope this response has been helpful to you.
At your service,
Eugene E. Kashpureff
Independent NetApp Consultant, K&H Research http://www.linkedin.com/in/eugenekashpureff
Senior NetApp Instructor, Unitek Education http://www.unitek.com/training/netapp/
(P.S. I appreciate points for helpful or correct answers.)
Eugene,
Thanks for the confirmation. That was my suspicion when the documentation mentioned restoring files and folders but the syntax only supported files or volumes.
use ndmpcopy from snapshots
enable ndmp then "ndmpcopy /vol/volname/.snapshot/snapshotname/path /vol/volname/targetpath"