How to copy data from one Window machine to another windows machine

Hi,

Recently we are migrating the windows machine, as part of that we have a huge data in the old windows and need to move to new machine.

Could you please share the steps on how to copy the data to new machine.

Thanks for your help in advance.

Thanks
Venkatesh.
venkatesh SarivisettySenior Software EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SandeepIT ConsultantCommented:
Either detach your hard drive from old system and connect it via connector to new system to copy - transfer data, or use external hard drives to transfer your data of any amount.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Hi Sandeep, We can do that if the machine to machine to transfer.

However we have a bastion in between so, I am not able to do that..

Also system1 we are connecting via bastion and system2 we are connecting via bastion. How we can copy the system1 to system2 by skipping the bastions. Need your help!

Thanks
Venkatesh.
Lee W, MVPTechnology and Business Process AdvisorCommented:
Can you be more specific - what "bastion" are you using?  (That's a pretty critical thing to leave out of the initial description - something that causes significant interference in a large transfer!)
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

venkatesh SarivisettySenior Software EngineerAuthor Commented:
Let me cleary explain you

I am not clear that what bastion meaning? but we have a bastion to connect the system1 and other bastion for system2.

That is where the problem here while copy the data from 1 to 2. Hope this helps..

We are expecting a Robocopy(But not sure how we can override the bastion here!

Thanks
Venkatesh.
Lee W, MVPTechnology and Business Process AdvisorCommented:
That's part of the problem - I assume "bastion" is a product or device you installed... but I've never heard of it.  How EXACTLY do you have things configured?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
before we dont have the bastion before.

So we can download the file from the machine and copy to the other machine but as part of new policies, we have bastion introduced so it makes us very hard time to copy the data.. Please advise.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
bastion is like a machine in between not a product or device FYI.
yo_beeDirector of Information TechnologyCommented:
Are you on a Network?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Yes we are using LAN Network
yo_beeDirector of Information TechnologyCommented:
So why not just use Robocopy to copy to the destination.

You mentioned you are using robocopy to target this Bastion device. Why not remove this from the mix?
sarabandeCommented:
i would assume that 'bastion' is a switch or router (with a switch).

are you connected to the bastion by LAN-cable?

if so and if the new  computer has ist own disks you may connect the new pc via LAN-cable to the same switch/router/Bastion.


check in your network configuration (System Settings - network and sharing center) whether the new pc is configured same way as the old one and that the connection worked. then  use a program like 'Easy Transfer' (Windows 7) or PCMover (Windows 8.1 or Windows 10) to move programs and data from old to new. you will find many YouTube videos which describe this step by step.

Sara
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Hi Sara - you ranswer is fine.. but could you please eloborate to understand myself. it is a produciton boxes not the user machines.

Need to transfer the data .

Thansk
Venkatesh
Paul SauvéRetiredCommented:
A bastion host is a special purpose computer on a network specifically designed and configured to withstand attacks. The computer generally hosts a single application, for example a proxy server, and all other services are removed or limited to reduce the threat to the computer. It is hardened in this manner primarily due to its location and purpose, which is either on the outside of a firewall or in a demilitarized zone (DMZ) and usually involves access from untrusted networks or computers.
but i can't find how to connect 2 pcs on the same network as the bastion host...
sarabandeCommented:
i can't find how to connect 2 pcs on the same network as the bastion host...

thanks Paul.

Venkatesh, the answer of Paul seem to make it impossible to do the copy via the bastion host.

so, in my opinion there are only a few options left:

you may go back to the first answer of Sandeep where he suggested to clone the disks

concretely this would require that you have local admin rights on both pc's and the new pc hardware is similar to the old one and that you have a new empty pc or with some preinstalled windows where it doesn't matter that it is overwritten. you also need the access rights to the bios and should be able to open the cases of both computers (always plug-off the power cable at the rear side of the pc).

then you would open the new pc and disassemble the disk (i think it is only one probably an SSD). then open the old pc and add the new disk to a free sata port (you know what that is when you removed it). add a power cable where there should some available in your case, normally at the same cable which gives power to the old disk.

if done so far, remove the network cable to the bastion (!) and boot. you should get a screen on the monitor which tells which key is needed to enter the bios. normally it is f2 or del. if you can enter the bios you should look whether the new disk was detected. you then can leave the bios and restart windows again. it now should be possible to get a local windows login. if that doesn't happen because the only available boot device is the bastion, you would need to do power-off again and plug the network cable to the bastion. then boot again and login (as local admin). go to system settings - administration - hard disk manager. here you should see your old disk and the new one. if so, you should format the partitions of the new disk (be very careful that you don't format any old disk. the new dis doesn't have a drive-letter). then create new partitions on the new disk such that you have the same partition sizes as with the old disk. if the new disk is bigger you might increase the sizes accordingly. each new partition should get a new drive letter. if all that worked, you should get a clone utility (paragon, partition manager, drive clone, ...) and clone each of the old partition the according new one.

after success, shutdown the old pc, remove the old disk and put the new disk at the same place. then boot (and pray). if it runs, you may go to the device manager and check whether all drivers still are correct. normally you would need to run the setup of the new mainboard setup cd to get all devices properly installed.

Sara
sarabandeCommented:
there is one step missing:

if the new disk runs successful in the old pc, you would go the bios again, and get a picture of the settings regarding boot devices, boot order, legacy devices, and so on. you might have to configure similar settings in the bios of the new pc in order to connect successfully to the bastion host again. then put the new disk back to the new pc and replace old and new pc. if booting of the new pc was successful (you probably should use a PS/2 keyboard and PS/2 mouse) you may ignore driver warnings which did not prevent you from going on. at this moment you may run the setup of the mainboard driver cd again what should solve driver issues, if any (check the device manager).

Sara
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Hi, your comments are more in depth with the windows.

My requirement here is connect to new machine and vie network we can connect to the old machine and transfer the data to new machine.

I know the firewall also opened between old and new machine. Please share the steps on how to connect from new machine to old machine using network .

Thanks
Venaktesh.
yo_beeDirector of Information TechnologyCommented:
You may have Windows Firewall enable. If you at on a LAN the machines should all be able to talk to each other.

Can you ping the new machine and also get to the shared folders on it?  Connectivity to this from the source to destination needs to be confirmed prior to giving any further input.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
HI Yo_bee, Yes Ping is working both OLD to NEW and viceversa but FTP is not working.
 
Need to check whether Firewall has been enabled or not.

Thanks
Venkatesh.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
However Just now I did a sample from old machine to new machine, it was copied few files. but when I tried to copy few more files. it is just calculating the time and not copying the pasted information. what is the reason?

Thanks
Venkatesh.
yo_beeDirector of Information TechnologyCommented:
I am confused now.  Why are you talking about FTP when you mentioned ROBOCOPY previously.

If you enter \\newserverName from the older server are you able to see the shares?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
No I am not able to see the folder..

where When I try FTP <IP address> it is saying as Connection refused.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
New machine is actually meant for SFTP, but the old Machine is FTP .. but the connectivity is there between both as I did ping and got the result.

However I am not able to get the FTP result from both the machines
yo_beeDirector of Information TechnologyCommented:
So you do not have any shares on your new server?
What if you when vice versa?  Can you see \\Oldserver when you enter the server name from the new server?

If you can try running robocopy from the new server.
This is just an example.

robocopy "\\olderserver\share" "D:\" /MIR /W:0 /R:0

Open in new window

venkatesh SarivisettySenior Software EngineerAuthor Commented:
from both the machines, I can do PING is getting success. both server FTP is not working.
yo_beeDirector of Information TechnologyCommented:
Are these both Windows machines.  
If they are and since you are on the same LAN you can use SMB rather than FTP.    
https://blogs.technet.microsoft.com/keithmayer/2012/10/21/12-steps-to-ntfs-shared-folders-in-windows-server-2012/

FTP is good for hosting file transfers on a Windows machine or when working with unix system, but if both Old and New servers are Windows machines you can leverage windows share and robocopy to copy the files.

Once your data has been copied you need to make sure that the new server has the proper features and roles installed.  
For FTP this is a feature that can be installed, but SFTP you will need a third party product.  

Here are two links that can help.

Video #1 - Installing FTP with User Isolation
http://youtu.be/5vanZfu8dv8

Video #2 - Installing SFTP with OpenSSH
http://youtu.be/aHKatBGrKbI
venkatesh SarivisettySenior Software EngineerAuthor Commented:
SFTP is avilable in the new machie. Also we have Winscp tool but I am not able to connect to system1 or system2 using that tool with th login credentials.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Today, I have tried to copy directly from old machine to new machine. Surprisingly, it is able to copy the small files.

When I tried to copy the big files, I am getting below error message in a a pop saying

Cannot copy <folder name> : There is not enough free disk space.
Delete one or more files to free disk space, and then try again.

Please advise how we fix this issue to copy, becoz now I found a way to copy atleast manually.

Thanks
Venkatesh.
yo_beeDirector of Information TechnologyCommented:
Can you compare the drives sizes?

If you open windows explorer and right click the drive you will see what the sizes are.

How large is the large file?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
System2 having more space to copy the files.

System1 from where I am pulling the files having a little size compared to system2.

I have doubt why whenever I started copy, a background process will start in system1 like a copying... before pasting to the system2.

If the filesize is small, I am able to copy that to system2, if it is large the system1 itself it is saying as copy failure due to insufficent space.

Please advise.

Thanks
Venkatesh.
sarabandeCommented:
i assume you already checked that the target drive has enough space?

if so, are you using  a copy program? if yes, you may check whether it could copy files bigger than 2 GB or 4 GB.

i also assume that you were not using the Windows Explorer for copy. if so, try the following

 - open a new instance of the Windows Explorer.

- find the item 'This PC' and select it.
- select 'Connect to Network drive' from menu or button. a dialog will open.
- here you'll get a drive letter like Z: as Default.
- then enter \\xxx.xxx.xxx.xxx\C$ as 'folder'.
  xxx.xxx.xxx.xxx is the ip address which you used with ping.
  C$ is the share for drive c of the new Computer.
  if the share is unknown you have to go to the new Computer and define a share for drive c.
- if old and new computer have a different login user you have to define the new user and password.

if all worked you should get a drive Z at your old computer which allows to copy files and folders from old to new by drag-and-drop. a right-click on Z would also allow to check the properties, especially if there is enough space to do the copy.

Sara
yo_beeDirector of Information TechnologyCommented:
would you be opposed to a remote session or post some screenshots of both computer.
How large is the large file?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
the file size is around 2 GB or 1.5 GB.
yo_beeDirector of Information TechnologyCommented:
Are you using robocopy or standard windows right click and copy?

What is the free space on the new server (on all the drives)?
sarabandeCommented:
System1 from where I am pulling the files having a little size compared to system2.

if you were pulling the files you should connect from new pc to old same way.

note, if the new folder already has a file with same Name, it might create a copy instead.

if the copy of big files fails also with drag-and-drop in the Explorer, i would assume that the bastion (software) prevents from copying huge files.

if so, you may check whether you really need the huge file to be copied and if so, you would need a tool that partitions the huge file such that you could copy it in pieces and put it together again at the target machine. or you find a way to connect the pc's directly without the bastion.

Sara
venkatesh SarivisettySenior Software EngineerAuthor Commented:
How can we clean the data from windows clipboard data.
yo_beeDirector of Information TechnologyCommented:
Venka:
Are you trying to copy the entire C:\ drive from the old computer or just a certain  directory and sub-directories?

Try robocopy;
https://technet.microsoft.com/en-us/library/cc733145(v=ws.11).aspx
Open command prompt from the new computer and enter this in.

robocopy "\\xxx.xxx.xxx.xxx\c$" "C:\copyed" /mir /w:0 /r:0

Open in new window

venkatesh SarivisettySenior Software EngineerAuthor Commented:
I am trying to copy entire D drive to new machine from old machine.

Will the robocopy works by overriding the bastion machine.

robocopy "\\xxx.xxx.xxx.xxx\d$" "D:\copyed" /mir /w:0 /r:0

Thanks
Venkatesh.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Where I need to run the Robocopy , I need command prompt , from where system1 or system2.???
sarabandeCommented:
How can we clean the data from windows clipboard data.
does that mean that you copied by using the clipboard? that won't work for big files since the clipboard's capacity is limited.



you can clean the clipboard by copying some small or empty text with CTRL+C.

robocopy "\\xxx.xxx.xxx.xxx\c$" "C:\copyed" /mir /w:0 /r:0

no, if c: is the System drive for both, you can't copy all because some or many files are exclusively opened by Windows operating system and background services. also you can't replace files at the target system for the same reason.

Sara
yo_beeDirector of Information TechnologyCommented:
If you are looking to move the data the d:\ you can remove D:\copy and just have.

Robocopy "\\xxx.xxx.xxx.xxx\D$" "d:\" /mir /w:0 /r:0

Not sure if it will override bastion, but you can try. If there is an issue you will get an error when running robocopy.
sarabandeCommented:
Will the robocopy works by overriding the bastion machine.

robocopy "\\xxx.xxx.xxx.xxx\d$" "D:\copyed" /mir /w:0 /r:0

of course not, as you used a subfolder 'copyed" for target. it also would not work if some files are opened at d: (what you rarely can avoid)

do you have an actual backup for your old system? if yes, you should try to restore your new drive d with the backup of the old drive d.

Sara
venkatesh SarivisettySenior Software EngineerAuthor Commented:
robocopy "\\Destination IP\d$" "D:\copyed" /mir /w:0 /r:0 Correct?

Need to run the above command in Source machine under Command prompt.

Also before doing the above, we need to share the destination D folder. Please confirm this steps. Then I can try to test this one.

Thanks
Venkatesh.
yo_beeDirector of Information TechnologyCommented:
No:

robocopy  "source" "destination" /mir /W:0 /R:0

So in your case the:
  1. source = \\old_Server name\D$ or \\IP-address\D$  (192.168.0.10)
  2. destination = D:\
I removed the \ from D:\
robocopy  "\\192.168.0.10\d$" "d:" /mir /W:0 /R:0 

Open in new window

venkatesh SarivisettySenior Software EngineerAuthor Commented:
Will it possible to copy from source D to Destination E drive? also need to providing sharing for any drives right?

robocopy  "\\192.168.0.10\d$" "e:" /mir /W:0 /R:0
yo_beeDirector of Information TechnologyCommented:
You can copy the source anywhere. It does not have to be the same drive letter.

Your example will work.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
I need to run this script in source server under command prompt. Final confirmation please.

robocopy  "\\192.168.0.10\d$" "e:" /mir /W:0 /R:0
venkatesh SarivisettySenior Software EngineerAuthor Commented:
My question is how the robocopy will detect the e: as the destination drive? and we are mentioning the destination IP?
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Please share your thoughts for the final confirmation and the question i have raised.
yo_beeDirector of Information TechnologyCommented:
If you have the E: as the letter associated with hard drive you are looking to copy the data to then that is it.  

If you do not have an E: on your source computer then there is no way that it will copy.

If you take a screenshot of your new computer file/windows explorer then this will help us give you the right information.
sarabandeCommented:
Need to run the above command in Source machine under Command prompt.

venkatesh, the command yo_bee has given, assumes that you do all in a command window of the destination pc. the 192.168.0.10 should be the old pc.

if you are at the source machine, the command is

robocopy  d:\  "\\192.168.0.XX\e$"  /mir /W:0 /R:0

the 192.168.0.XX should be the ip address of the destination machine and you would push from old to new.

it requires you to have a share defined for drive e and additionally that the drive e is empty (or at least doesn't contain same top folders as the d drive from source pc).

if ever possible you should pull the data from old pc and do it from a command window of the new pc.

Sara
yo_beeDirector of Information TechnologyCommented:
To add to Sara's comment.

My recommendation was to run this from your new server since it will have Robocopy as an exe already.  I am assuming that the old computer is a windows 2000 server being that you tagged this question with category Windows 2000.

Since you mentioned Robocopy in one of your earlier comments I assumed that you knew how to execute the command.
I am sorry I did not highlight the use of command prompt.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Yo_bee ,

I dont know how to run the Robocopy. But I know the term Robocopy to copy the files from one machine to another machine.

Both were windows machines only Destination is

Source Machine - Windows Server 2003 Standard
Destination Machine - Windows server 2012 R2 Statndard

Now share your thoughts

1. Where to run the above command in source or destination using command prompt.
2. Any changes need to done before running the Robocopy(Source and destination).
3. Any data loss while doing the Robocopy(Source and destination)
4. How much time will it take for copying 7.5 GB data to destination.

Thanks
Venkatesh.
venkatesh SarivisettySenior Software EngineerAuthor Commented:
Since I am testing this directly from Production machine, So, I need to make sure that there is no impact to the source data.

Please share if any precautions we will take care to avoid this type of issues. Please suggest

Thanks
Venkatesh.
yo_beeDirector of Information TechnologyCommented:
1. Where to run the above command in source or destination using command prompt.
Destination computer as mentioned in my previous replies (Run from the New Server)
2. Any changes need to done before running the Robocopy(Source and destination).
The security should propagate, but to make sure you can run this command:
Robocopy "\\Old_Compuer\d$" "E:" /Mir /COPYALL /W:0 /R:0 

Open in new window

This will mir the source to the new computer and copy all security as well
3. Any data loss while doing the Robocopy(Source and destination)
If a file is locked it will warn you and retry again .  the switch /W:0 is how many seconds between warnings and the /R:0 is how many retries.  By default the command will use 30 second intervals and 10,000 retries if the file is locked or the user account used to run the command does not have significant permission to the source or destination.  I set the example to 0 seconds between retries and 0 retries.  This will skip files.  If you want to have it try a few times prior to moving on I will change the /W:5 and the /R:2 , but keep in mind this will increase the time of the overall process

4. How much time will it take for copying 7.5 GB data to destination.
This all depends on the networks throughput.  If you are running 1 GB connections at both ends it will technaically take 8 seconds, but if one side it 10 MB you are looking at 17 minutes.

The reason I never elaborated on my suggestions is because you mentioned Robocopy in one of your earlier repies





Author Comment
by:venkatesh Sarivisetty
ID: 42319860·5d



Let me cleary explain you

 I am not clear that what bastion meaning? but we have a bastion to connect the system1 and other bastion for system2.

 That is where the problem here while copy the data from 1 to 2. Hope this helps..

 We are expecting a Robocopy(But not sure how we can override the bastion here!

Hope that explains it better

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Seth SimmonsSr. Systems AdministratorCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: yo_bee (https:#a42326681)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
xxcopy

From novice to tech pro — start learning today.