Solved

migrate data from old server file server to new

Posted on 2016-09-30
2
18 Views
Last Modified: 2016-10-25
we have a windows 2003 file server. there are two shared folders that are mapped on the windows 7 clients. clients use these mapped drive to store their data. we want to migrate the data to the new server and redirect the drive mappings to the new location seamlessly considering I have to do this process during the day while the users will be accessing the data on the shares.

1. share 1 is for home folders (configured on the AD user account properties)
2. share 2 is for data ( script configured in a GPO)

suggestions please
0
Comment
Question by:Aamer-
  • 2
2 Comments
 
LVL 29

Accepted Solution

by:
ScottCha earned 500 total points (awarded by participants)
ID: 41823348
First off, what version are you migrating to?  Is it safe to assume Windows 2012 R2?

Migrating data during business hours when it is being accessed is never a good idea.  If a file is open, it may be skipped and data lost.

I use this PS  Script to robocopy data.  You can schedule it to run after hours or during a scheduled down time.

##############################################################################
# Migrate files between servers .v 2.0.1
# Modified for PowerShell use by S.Chaney, 07/20/2016
# Email notification added by S. Chaney 07/21/2016
#
# !!!!! /B switch must be at the end of the command string or it will not work.  Files not owned will timeout and fail to copy !!!!!
#
# Use /COPYALL option to migrate ACL and Auditing Info (for production shares, servers must be in same domain)
# Use /COPY:DATO option to migrate Data, Attributes, Timestamp, Owner (Not Security, aUditing Info) (for backup copy of full system)
#
##############################################################################
$From = "user@xx.net"
$To = "user@xx.net"
$Cc = "user@xx.net"
$Subject = "C Drive copy has started"
$Body = "C Drive copy has started"
$SMTPServer = "smtp.appriver.com"
$SMTPPort = "2525"
# $Attachment = "C:\temp\Some random file.txt"
#
Send-MailMessage -From $From -to $To -Cc $Cc -Subject $Subject `
-Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl `
-Credential $cred # -Attachments $Attachment
##############################################################################

date

$source=@("\\dc1\c$")
$destination=@("e:\robocopy\dc1\c")
$logfile="e:\robocopy\robocopy_dc1_C.log"

robocopy $source $destination /COPY:DATO /E /Z /R:2 /W:3 /NP /XJ /PF /LOG+:$logfile /XF .rnd AUTOEXEC.BAT boot.ini bootmgr BOOTNXT CONFIG.SYS IO.SYS MSDOS.SYS NTDETECT.COM ntldr pagefile.sys /XD "$source\boot" "$source\CIntApps" "$source\Config.Msi" "$source\Dump" "$source\$Recycle.bin" "$source\Documents and Settings" "$source\RECYCLER" /B

attrib +r $logfile
attrib -s -h -r $destination
 
##############################################################################
# $Attachment = "C:\temp\Some random file.txt"
$Subject = "C Drive copy has completed"
$Body = "C Drive copy has completed"
#
Send-MailMessage -From $From -to $To -Cc $Cc -Subject $Subject `
-Body $Body -SmtpServer $SMTPServer -port $SMTPPort -UseSsl `
-Credential $cred # -Attachments $Attachment
##############################################################################
0
 
LVL 29

Expert Comment

by:ScottCha
ID: 41858236
This script will copy the data as OP requested.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Learn about cloud computing and its benefits for small business owners.
This article runs through the process of deploying a single EXE application selectively to a group of user.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question