Copy all files and folders from one HDD to another HDD using Robocopy?


Recommended Posts

In my curious ways :p Im wondering how to make a exact copy of all files and folders from one drive to another.

Ive found (S:/ is Source and D:/ is Destination)

robocopy S:/ D:/ /MIR

But there are sys files it doesn't copy over.

How can I make a "dd" out of robocopy?

  On 16/04/2014 at 18:32, riahc3 said:

In my curious ways :p Im wondering how to make a exact copy of all files and folders from one drive to another.

Ive found (S:/ is Source and D:/ is Destination)

robocopy S:/ D:/ /MIR

But there are sys files it doesn't copy over.

How can I make a "dd" out of robocopy?

 

 

Have you tried XCOPY that ships with all versions of Windows?

  On 16/04/2014 at 18:45, riahc3 said:

Whats the difference between it and robocopy?

XCOPY is a core EXE of the OS and it can copy anything that you're allowed to read. All you need to do is run the command prompt as administrator.

 

Using XCOPY and then manually reconstruct a boot environment is better than to rely on some random 3rd part app.

XCOPY is good for anything that you want to copy.

system files won't copy over even with the copy command.  Mir = /e + /purge

/E :: copy subdirectories, including Empty ones.

/PURGE :: delete dest files/dirs that no longer exist in source.
/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).

 

robocopy /?

will give you all of the commands.

 

I would do this

robocopy s: d: /E /MT:20 /V /ETA /LOG:c:\users\userid\desktop\robocopy.txt

 

This way it will do a multithreaded copy (copying 20 files at a time vs 1 at a time), and give you a log of what it misses or errors on, if you want to purge the files that are no longer on the source then by all means do the MIR.  After you have found the files with the system attribute in the log you can create a batch file rather quickly to remove the system attribute on those files and run the copy again.  Note that if a file is in use you cannot copy it in this method, usually system files are in use like the explorer.exe.  Keep in mind that hidden files/folders also will not be copied.

xcopy /v /e /h /r (Source) (Target)

 

xcopy /v /e /h /r c:\*.* d:\*.*  - for example would copy the entire c drive to a d drive.

 

/v - verification

/e - folder's including empty one's

/h - hidden / system files

/r - read only files

 

More Information on switches

http://technet.microsoft.com/en-us/library/cc771254.aspx

What system files are you trying to copy? Are you trying to copy a OS drive/dir or data dir? What exactly are you trying to accomplish, robocopy is great for doing a mirror of data structure - but not sure I would use it as a means of trying to copy over or backup a OS directory structure like windows or program files, etc.

  On 16/04/2014 at 19:39, sc302 said:

system files won't copy over even with the copy command.  Mir = /e + /purge

/E :: copy subdirectories, including Empty ones.

/PURGE :: delete dest files/dirs that no longer exist in source.

/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).

 

robocopy /?

will give you all of the commands.

 

I would do this

robocopy s: d: /E /MT:20 /V /ETA /LOG:c:\users\userid\desktop\robocopy.txt

 

This way it will do a multithreaded copy (copying 20 files at a time vs 1 at a time), and give you a log of what it misses or errors on, if you want to purge the files that are no longer on the source then by all means do the MIR.  After you have found the files with the system attribute in the log you can create a batch file rather quickly to remove the system attribute on those files and run the copy again.  Note that if a file is in use you cannot copy it in this method, usually system files are in use like the explorer.exe.  Keep in mind that hidden files/folders also will not be copied.

Sadly I went ahead and did it with mir but missed the multithreaded switch.
  On 16/04/2014 at 19:39, sc302 said:

system files won't copy over even with the copy command.  Mir = /e + /purge

/E :: copy subdirectories, including Empty ones.

/PURGE :: delete dest files/dirs that no longer exist in source.

/MIR :: MIRror a directory tree (equivalent to /E plus /PURGE).

 

robocopy /?

will give you all of the commands.

 

I would do this

robocopy s: d: /E /MT:20 /V /ETA /LOG:c:\users\userid\desktop\robocopy.txt

 

This way it will do a multithreaded copy (copying 20 files at a time vs 1 at a time), and give you a log of what it misses or errors on, if you want to purge the files that are no longer on the source then by all means do the MIR.  After you have found the files with the system attribute in the log you can create a batch file rather quickly to remove the system attribute on those files and run the copy again.  Note that if a file is in use you cannot copy it in this method, usually system files are in use like the explorer.exe.  Keep in mind that hidden files/folders also will not be copied.

BTW, this gives no visual output; Just says:

"Log File : C:\robocopy.txt"

% and times would be nice IMO.

What do you think /ETA is? But your putting it in the log, if you want log and console use

 

/TEE :: output to console window, as well as the log file.

 

I personally would not put /ETA in the log - its makes it hard to read..  lots of this

 

 0%  
  3%  
 25%  
 28%  
 35%  
 42%  
 50%  
 53%  
 57%  
 64%  
 71%  
 75%  
 89%  
 92%  
100%  
100%

 

But if you want log and console /TEE is what you want - just add it at the end of the command

  On 21/04/2014 at 13:04, sc302 said:

Open the log file as it is copying. You will have to close and open to refresh.

Or just use tail, here is windows version

http://tailforwin32.sourceforge.net/

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I think you misread the article. The proposed features doesn't create articles, it adds a summery section to existing articles that is AI generated, and based on the screenshot provided, does make it very clear that it is machine generated.
    • Lol, who still expects privacy in a facecrook-owned product these days? Let alone one that's 100% cloud hosted and doesn't function offline...
    • I stand by my "reading comprehension" statement. Every single point you bring up here I have already replied to in detail in. I am not going to spend time repeating myself to someone who isn't reading what I say. I am happy to have a conversation if you want to respond to anything I have said. I will happily admit when I am wrong if it comes to that. If you are just going to keep repeating your original claims and I have already responded to them, then it sounds like neither of us have any more to add to the conversation.
    • LG's UltraGear 32GX870A-B OLED gaming monitor hits a new low price by Paul Hill Are you in the US and looking for a top-of-the-line gaming monitor? Then be sure to check out the LG UltraGear OLED gaming monitor; it’s now discounted by 14% from its $1,400 list price, down to $1,210. This means you’ll be saving $190 if you decide to buy it now at its lowest price so far. Check out the buying link at the end of the article. If this monitor is still too high in price, there is also the 27-inch model available with a 20% discount bringing the price down to $796.99. In this piece, I will be focusing on the larger model, so be sure to double check the details of the 27-inch model separately for differences. If you were thinking about buying this as a Father’s Day gift, it is not going to arrive in time with standard delivery; however, you can get a Prime member trial to get it in time. 4K 240Hz or FHD 480Hz? One of the big features with the LG UltraGear OLED gaming monitor is the VESA-certified Dual Mode. It lets you select 4K Ultra-HD at 240Hz for graphically rich games where you want to see all the details or Full HD (1080p) at 480Hz for fast-paced titles. If you’re in a single-player game and want to take in all the details, the first option will be best. If you’re playing an intense multiplayer shooter, then the second option will be better to reduce lag further. Speaking of lag, this monitor supports an impressive 0.03ms GtG response time and has AMD FreeSync Premium Pro and is also Nvidia G-Sync compatible. This should ensure the monitor works well with both Nvidia and AMD graphics cards. OLED visuals and gaming experience Other notable features of this LG gaming monitor are its VESA DisplayHDR True Black 400 certification, 275 nits typical and 1,300 nits peak brightness. With all this, the monitor can render deep blacks, vivid colors, and bright highlights, delivering a superior HDR viewing experience that is especially beneficial for gaming and cinematic content in low-light environments. It features an impressive 1.5M:1 contrast ratio, an anti-glare, low reflection OLED screen, has built-in speakers and DTS Headphone:X support via 4-pole headphone jack, and it has an ergonomic stand with height, tilt, swivel, and pivot adjustments. While the “bass-driven” built-in speakers are nice for a basic setup, serious gamers, who this monitor is aimed at, will likely have a more comprehensive sound setup in place anyway that outperforms what this monitor provides. In terms of connectivity, the LG UltraGear OLED has two HDMI 2.1 ports and USB Type-C (65W power delivery). The DP 2.1 ports deliver ultra-fast data speeds for high refresh rate gameplay, helping to reduce lag and get the edge in competitive games. Finally, there is another feature called Switch App that turns your screen into a multitasking hub for work, gaming, and streaming. It lets you create up to 6 sections, customize the layouts, or launch video calls with one hotkey. This allows you to easily switch between your PC and the in-built webOS streaming platform using shortcuts. Is the LG 32GX870A-B worth it? The LG UltraGear OLED definitely offers standout features that help to justify the price, namely the up to 480Hz refresh rate. Other features like VESA DisplayHDR True Black 400 certification will also make the games you play look more accurate color-wise and if you don’t already have speakers, the monitor provides a “bass-driven” speaker setup for at least decent baseline audio. If you are a serious gamer, this monitor deserves consideration given the discount, it’s also at its lowest-ever price, so you’re not paying over the odds. If you still want a good monitor, but don’t want to pay as much, check out the 27-inch model. LG UltraGear OLED 32-inch: $1,209.14 (Amazon US) / MSRP $1,399.99 LG UltraGear OLED 27-inch: $796.99 (Amazon US) / MSRP $999.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • The concept of ghost writers has existed for centuries; they don't get disclosed. I'm not sure this is different. In both cases the true author has agreed to do the work without being publicly credited. Don't get me wrong, I find the entire thing disgusting. Perhaps we agree but have slightly different standards for what the word "shady" means.
  • Recent Achievements

    • Week One Done
      fashionuae earned a badge
      Week One Done
    • One Month Later
      fashionuae earned a badge
      One Month Later
    • Week One Done
      elsafaacompany earned a badge
      Week One Done
    • Week One Done
      Yianis earned a badge
      Week One Done
    • Veteran
      Travesty went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      505
    2. 2
      ATLien_0
      262
    3. 3
      +FloatingFatMan
      191
    4. 4
      +Edouard
      175
    5. 5
      snowy owl
      126
  • Tell a friend

    Love Neowin? Tell a friend!