This script gets used to advance the cloning process on NetApp volumes. We use it to clone complete directories (scripted from powershell commandling) in an efficent and easy way instead of cloning file by file manually.
This small Netapp Data ONTAP PowerShell Toolkit allows you create scripted Enhanced Flexclone from a complete (nfs exported) Directory inside a volume. We’ve used this to create highly storage-efficient automated copy-on-write clones from a bunch of Virtual Machines store on NFS exported Netapp Volumes:
See the example where a 153GB VM has been cloned 1000 times with a storage saving / deduplication of 99%.