{"id":1308,"date":"2024-01-19T16:36:05","date_gmt":"2024-01-19T15:36:05","guid":{"rendered":"https:\/\/ndk.sytes.net\/wordpress\/?p=1308"},"modified":"2024-09-13T09:13:27","modified_gmt":"2024-09-13T07:13:27","slug":"migrate-windows-file-server","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1308","title":{"rendered":"Migrate Windows File Server"},"content":{"rendered":"\n<p>Microsoft File Server migration in my case consisted of 3 steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Copy files (including NTFS permissions)<\/li>\n\n\n\n<li>Copy shares<\/li>\n\n\n\n<li>Copy quotas<\/li>\n<\/ol>\n\n\n\n<p>Here is what to do:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Copy files using robocopy<\/h2>\n\n\n\n<p>i copied files from my old to new server using following command on the source server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">robocopy.exe .\\MyRootFolder \\\\MyDestinationServer\\driveletter$\\MyRootFolder \/MIR \/SEC \/SECFIX \/W:3 \/R:3 \/E \/ZB \/COPYALL \/V<\/pre>\n\n\n\n<p>To learn more about the parameters, go to this <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/robocopy\" target=\"_blank\" rel=\"noreferrer noopener\">microsoft page for robocopy<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Copy shares<\/h2>\n\n\n\n<p>Use regedit to export \/ import following key and its content:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\LanmanServer\\Shares<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Copy quotas<\/h2>\n\n\n\n<p>Now this was the most complicated part as it involved some scripting. First export the quota templates from the source server:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dirquota.exe template export \/file:C:\\quota.xml<\/pre>\n\n\n\n<p>copy that file onto the destination server and do:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dirquota.exe quota template import \/file:&lt;path_to_xml_file&gt;<\/pre>\n\n\n\n<p>Afterwards you have to output the specific quotas and add them with:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dirquota.exe quota add \/Limit:&lt;size_in_gb_or_mb&gt; \/SourceTemplate:&lt;name_of_the_template&gt; \/Path:&lt;path_to_quota_folder&gt;<\/pre>\n\n\n\n<p>Source: <a href=\"https:\/\/suddhaman.blogspot.com\/2020\/07\/file-server-migration-windows-server.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/suddhaman.blogspot.com\/2020\/07\/file-server-migration-windows-server.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft File Server migration in my case consisted of 3 steps: Here is what to do: Copy files using robocopy i copied files from my old to new server using following command on the source server: robocopy.exe .\\MyRootFolder \\\\MyDestinationServer\\driveletter$\\MyRootFolder \/MIR \/SEC \/SECFIX \/W:3 \/R:3 \/E \/ZB \/COPYALL \/V To learn more about the parameters, go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,9],"tags":[],"class_list":["post-1308","post","type-post","status-publish","format-standard","hentry","category-servers","category-windows"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1308"}],"version-history":[{"count":2,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1308\/revisions"}],"predecessor-version":[{"id":1319,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1308\/revisions\/1319"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}