Network and Storage Protocols

migrate 1000 Cifs shares from windows 2003 R2 Server to filer

holger_hennig
5,818 Views

hi,

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 ?

Cheers

holger

5 REPLIES 5

enrjfitz1
5,818 Views

Hi,

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.    

edmund_wallner
5,818 Views

Hi,

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 ?

regards

Edmund

enrjfitz1
5,818 Views

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.

bcoy
5,818 Views

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.

boristetsis
5,818 Views

Hi

secure copy wil do the job

https://now.netapp.com/Knowledgebase/solutionarea.asp?id=3.0.3170247.2644771

it can copy files, directories, ntfs security, shares, share security

http://www.scriptlogic.com/Products/SecureCopy/secure-copy-5.0-datasheet.pdf.

Regards

Boris

Public