Hello and welcome to CertForums.co.uk, here we host free active certification forums with links to the best free resources for Microsoft's MCSA MCSE MCDBA Cisco's CCNA CCDA and CCNP, and CompTIA's A+ Network+ i-NET+ and Security+ certifications in the UK. If you wish to post or use other advanced features you will need to register first. Registration is absolutely free and takes only a few minutes to complete so sign up today!

If you have any problems with the registration process or your account login, please contact support

Go Back   CertForums > Computing Support Forums > Software
Home Forums Register Search Today's Posts Mark Forums Read

Best DOS command to move lots of data?

Post New ThreadReply
 
Thread Tools Display Modes
  #1  
Old 14-May-2008, 09:05 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Longterm Member
Posts: 781
Points: 679 NightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 points
Power: 20
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Best DOS command to move lots of data?

I have 16GB to move at work. Tried xcopy but it seems to miss bits, the data move ended up 1GB short
Thought I would try robocopy this weekend and try and sync the two copies of the data, not enough time to move it all again. Anyone have any experience with robocopy, there are a lot of switches to use....


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW
 
Reply With Quote
  #2  
Old 14-May-2008, 09:16 PM
zebulebu's Avatar
zebulebu zebulebu is offline
Lifetime Member
Posts: 1,731
Points: 4117 zebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 points
Power: 62
None
Join Date: 07 Aug 2006
Location: Croydon - arsehole of the universe
Age: 34
Certifications: A few
WIP: NCDA, VCP
Yeps

Give me a few minutes and I'll dig out the syntax of my usual robocopy batch file for mirroring a directory tree to another share on a different server


The ruptured capillaries in your nose bely the clarity of your wisdom


My crappy youtube vids

Last edited by zebulebu : 14-May-2008 at 09:18 PM.
 
Reply With Quote
  #3  
Old 14-May-2008, 09:24 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Longterm Member
Posts: 781
Points: 679 NightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 points
Power: 20
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Quote:
Originally Posted by zebulebu View Post
Yeps

Give me a few minutes and I'll dig out the syntax of my usual robocopy batch file for mirroring a directory tree to another share on a different server
Cool, thanks zeb.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW
 
Reply With Quote
  #4  
Old 14-May-2008, 09:28 PM
zebulebu's Avatar
zebulebu zebulebu is offline
Lifetime Member
Posts: 1,731
Points: 4117 zebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 points
Power: 62
None
Join Date: 07 Aug 2006
Location: Croydon - arsehole of the universe
Age: 34
Certifications: A few
WIP: NCDA, VCP
Here ya go

@ECHO OFF
SETLOCAL

SET _source=\\server1\share1
SET _dest=\\server2\share2
SET _what=/COPYALL /B /SEC /MIR
:: /COPYALL :: COPY ALL file info
:: /B :: copy files in Backup mode.
:: /SEC :: copy files with SECurity
:: /MIR :: MIRror a directory tree

SET _options=/R:0 /W:0 /LOG+:c:\BackupLog.txt
:: /R:n :: number of Retries
:: /W:n :: Wait time between retries
:: /LOG :: Output log file

ROBOCOPY %_source% %_dest% %_what% %_options%


The ruptured capillaries in your nose bely the clarity of your wisdom


My crappy youtube vids
 
Reply With Quote
  #5  
Old 14-May-2008, 09:41 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Longterm Member
Posts: 781
Points: 679 NightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 points
Power: 20
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Thanks, I will run a few tests tomorrow on some data.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW
 
Reply With Quote
  #6  
Old 16-May-2008, 12:28 AM
zebulebu's Avatar
zebulebu zebulebu is offline
Lifetime Member
Posts: 1,731
Points: 4117 zebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 pointszebulebu has over 4000 points
Power: 62
None
Join Date: 07 Aug 2006
Location: Croydon - arsehole of the universe
Age: 34
Certifications: A few
WIP: NCDA, VCP
So how did it work out for ya?
If you need it, there is some excellent documentation and examples for Robocopy here


The ruptured capillaries in your nose bely the clarity of your wisdom


My crappy youtube vids
 
Reply With Quote
  #7  
Old 16-May-2008, 05:43 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Longterm Member
Posts: 781
Points: 679 NightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 points
Power: 20
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
I ran some tests today and tweaked the switches to get it to do what I needed. The data I needed to move was mostly in the new location on the FAP server at Head Office. I told the team leader who’s data it is that I would need to verify the transfer was successful before his staff started using it and not the original copy at the data centre. So he sent a big blanket email the Friday before telling everyone to use the new copy from Monday (this was last Friday). So xcopy failed to deliver the goods, and I was left with this mess!

Users have been updating files all week on the new copy of the data, the old copy has been static. It made the whole business of re-syncing the data infinitely more complicated (if only they listened...). So I added the /XO switch to your batch file and took out the /MIR (had to add /S and /E too). Tested it moving some files around my C: drive and was happy with the results. So now its all ready to start in a scheduled task at 6am on Sunday. I will let you know the results Monday.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW
 
Reply With Quote
  #8  
Old 21-May-2008, 08:32 PM
NightWalker's Avatar
NightWalker NightWalker is offline
Longterm Member
Posts: 781
Points: 679 NightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 pointsNightWalker has over 500 points
Power: 20
None
Join Date: 04 Apr 2005
Location: Devon, UK
Age: 29
Certifications: A+, Network+, MCP, MCSA:M 2003
WIP: Active Directory 70-294
Robocopy, he gets the job done.

Worked a treat, sorted out the mess! xcopy seems to fall down when there is a lot of data to move. It missed bits, not good. Robocopy filled the gaps, and has enough switches to do exactly what you need it to. So for smaller data moves, less than a few GBs, xcopy will do fine, for everything else there is Robocopy.


A+, Network+, MCP, MCSA:Messaging 2003, (70-270, 70-284, 70-290, 70-291, 70-293).
Microsoft Course 2576.

CPU: C2D E6600 @ 3.2 Ghz
HSF: Zalman CNPS9500A-LED
Mobo: Asus P5K Premium-Black Pearl
Ram: Corsair XMS2 2x1GB DDR2-675MHz
GPU: Asus EN8600GT DX10
HD: OS = 1xWD1600YS
HD: Data = 3xWD1600JS RAID5
PSU: Hiper Type-R 530W
Case: Thermaltake VC3000BWS
Display: Samsung SyncMaster 2232BW
 
Reply With Quote
Post New ThreadReply Spread this thread: Submit this thread to digg Submit this thread to del.icio.us


Go Back   CertForums > Computing Support Forums > Software


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BitLocker: Windows data protection with whole-disk encryption? Mitzs Security & Viruses 0 12-Mar-2008 07:33 AM
DOS driver for VMware Workstation 6 philbenson Virtual Computing 1 04-Feb-2008 09:40 AM
OSI - Data Layer & Transport Layer morph Network+ 2 15-Dec-2007 01:35 PM
Moving Exchange data to another server Stoney Exchange Exams 1 03-Nov-2007 11:20 PM
Data Centre Infrastructure Design Specialist Ka151 Design 6 01-Jun-2007 02:26 PM


All times are GMT. The time now is 05:09 AM.

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
CertForums.co.uk (C) copyright 2003-2007 All Rights Reserved. Content published on CertForums.co.uk requires permission for reprint.
Hosted by Lunarpages