Network Storage Protocols Discussions
what is the best way to migrate ( via script ) around 1000 CIFS file shares from a Windows 2003 Server to an NetApp FAS with CIFS.
Is there a way to script the creating in a simple way, or exists a tool for that ?
The method I usually use is Windows Robocopy. If you create a main share folder on the filer then you can use Robocopy to migrate the files to it over the LAN.
Robocopy is basically a file copying script but it does have a GUI front-end. You can also choose to keep the same file permissions, security etc which is very handy when using AD.
You can download Robocopy from the Microsoft site.
its not just the copy of all the Files. The very important thing is the automatic creation of the shares. We won't create every single Share by hand. Is there a oppertunity to do this automatically ?
OK, in that case then I'd research the Data ONTAP PowerShell scripts to create a cmdlet which lists the shares of the server and feeds them into a NetApp create new CIFS share command.
Once this is done, the CIFS shares should be created for you to run Robocopy on.
It might be easier to modify the etc\cifsconfig_share.cfg. You could create a dummy share that will show you the syntax of the file then just add all your shares in the cfg file.
secure copy wil do the job
it can copy files, directories, ntfs security, shares, share security