2015-10-21 10:52 AM
You could copy config_share.cfg and edit it for the target... then with cifs terminated, copy the file (nfs, ndmp, or non-cifs method) to the target, then cifs restart.
For cDOT (not this case), there is a really good script Justin posted http://www.datacenterdude.com/storage/backup-restore-cifs-shares-netapp-clustered-data-ontap-powershell/
2015-10-21 10:59 AM
2015-10-21 11:03 AM
You could take the content of cifsshare_config.cfg and use it to create a command line script to create the shares you want... enter the lines on the target after edits if needed.
One point to note...when cifsconfig_share.cfg is parsed at cifs startup, it takes the cifs access as listed. When you enter a cifs shares command to create a share at the command line, it automatically adds "EVERYONE / FULL CONTROL".. so if you don't want that or it isn't on the source, then you need to cifs access to delete everyone after you create the share from the cli.