Avatar of Member_2_7964761
Member_2_7964761

asked on 

Robocopy on Windows Server 2012 r2 syntax

Hello Experts,

I need to copy over an entire drive from one server to another. I wanted to use Robocopy and tried the following

robocopy \\servername\G$ \\servername\g$  

I get page file error (page in use)
so I tried
robocopy \\servername\G$ \\servername\g$  /XF pagefile.sys      but it only copied over some of the folders and data.

What is the correct syntax?

thanks!
Windows Server 2012

Avatar of undefined
Last Comment
Member_2_7964761
ASKER CERTIFIED SOLUTION
Avatar of Maclean
Maclean
Flag of New Zealand image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Todd Nelson
Todd Nelson
Flag of United States of America image

Do you need to copy permissions too?

Here is a good reference with examples and syntax...
Avatar of Qlemo
Qlemo
Flag of Germany image

Of course the servernames in your command are different?
Avatar of Member_2_7964761
Member_2_7964761

ASKER

Thanks! I will try this tomorrow. The one switch I don't see is to skip over files in use? (Page file in use) is this available?
SOLUTION
Avatar of NVIT
NVIT
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Member_2_7964761

ASKER

Thanks for your help! Got them copied over but still missed a lot of files plus it took 2.5 hours.  We are looking for the best solution for DR.  Is it possible to mount a network drive. This is  possible on Windows server 2012 r2?
SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
SOLUTION
Avatar of serialband
serialband
Flag of Ukraine image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Maclean
Maclean
Flag of New Zealand image

Why not use DFS if you want DR for data. Its not the best solution out there perhaps, but its reliable enough, comes with windows and incrementally updates files as data changes, plus if server A fails, it will keep running on the name space using server B. I suppose this is for user data, not full system backups.
Avatar of Member_2_7964761

ASKER

Thanks for your help!
Windows Server 2012
Windows Server 2012

Windows Server 2012 is the server version of Windows 8 and the successor to Windows Server 2008 R2. Windows Server 2012 is the first version of Windows Server to have no support for Itanium-based computers since Windows NT 4.0. Windows Server 2012, now in its second release (Windows Server 2012 Release 2) includes Foundation, Essentials, Standard and Datacenter, and does not support IA-32 or IA-64 processors.

21K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo