#Restore the content of a directory from snapshot

1 messages · Page 1 of 1 (latest)

meager roost
#

Hello guys, salut!

I'm looking to restore the content of a whole directory in an ONTAP volume.
Using the volume snapshot command, I can restore the entire volume, a single file or even a part of a file.
Is there a quick way to restore an entire directory from a local snapshot
I know I can use rsync or robocopy (from Linux or Windows client). I can also use ActiveIQ Unified Manager to restore a directory but it uses NDMP, so files are copied instead of just restore pointers => it's (very) slow.

Is there a way to achieve that without copying data (just like a snapshot volume restore does)?

Thanks in advance for your help 😁

velvet tinsel
#

Use volume snapshot restore-file command to restore a single file or LUN to its original location.
Will only restore single file and not usable to restore a folder and all it’s contents.

real umbra
#

depends on how many files - but basically you need to snaprestore each file in the directory. "Previous Versions" in windows on a directory may do it automatically.. but I'm not 100% sure

meager roost
#

Thanks for your answer @real umbra.
As a Linux expert, I can write a script to do that. But do you think it's a good idea to send 1000 (or even millions) of snaprestore commands to my ONTAP controllers? 😅
Yesterday, I restored a 3TiB directory from snapshot using ActiveIQ Unify Manager. I took 12 hours (+/- 4GB/min). I just want to now if there is a better way to acheive that.
Just want to improve myself and my workflows 😄

gray basin
#

there is no other way. for large files, snapshot restore-file is the fastest, for small files, rsync/xcopy from the snapshot dir is the fastest.

orchid cove
#

Restoring files and directories from snapshots has always been annoyingly slow. I guess I don't do it enough to file a formal enhancement request but somebody should. It's just pointers - restoring a directory should be as quick as a snaprestore of a big volume.