Quantcast
Channel: ONTAP Discussions topics
Viewing all articles
Browse latest Browse all 4879

Using Powershell to export all qtrees from a source-svm and importing it on a dest-svm

$
0
0

Hi there,

 

we use a script to export and import export-policies including their client-matchlist from source to destination svms (http://scottharney.com/powershell-scripts-for-backup-of-cdot-nfs-exports/) which works fine, but we need a bit more...

 

We noticed on our destination svms that the only thing different than on our source svms is the qtree to export-policy association. Basically using the script above the export policy which is default for the volume gets inherited to all the qtrees. But on the source svm we have dedicated policies per qtree.

 

Anybody good with Powershell?

get-ncqtree delivers the qtrees

get-ncexportpolicy delivers the policies but shows multiple ones for the same volume instead of listing the qtrees...

 

 

Thanks for your help!


Viewing all articles
Browse latest Browse all 4879

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>