Questions tagged [robocopy]

Robocopy is a command line file copy utility for Windows-based operating systems.

Robocopy is a Microsoft command line file copy utility that is built into Windows Server versions 2008 R2 and newer. Examples of basic functionality include directory mirroring, copying files over a network, restartable copy and multiple exclusion/inclusion flags.

276 questions
4
votes
2 answers

PathTooLongException error when using Get-ChildItem

I'm trying to generate a list of all known files on a file share with Attributes Archive and Offline. But I keep running into PathTooLongException errors. So far I've only found that Robocopy can work past the file length errors except that I can't…
Marcus
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

Mirroring harddisk with compressed files with Robocopy

I tried to mirroring an existing disks on a new disks with less space. It is very important that the file structure, attributes and ACL's are exact as on the source disk. For this I tried robocopy.exe: robocopy $sourceDisk $destinationDisk /mir /XD…
larkee
  • 191
  • 1
  • 8
4
votes
3 answers

Robocopy /xd with wildcards and sub-paths

I don't think this exact question has been asked before (I looked). My backup server runs a script using Robocopy, and I want to exclude files that don't really need to be backed up, specifically: *\AppData\Local\Google…
nerdfever.com
  • 231
  • 2
  • 4
4
votes
3 answers

Move, and split up, 5TB of data

Here is the scenario: I have 5 TB (yes, that's a T) of files on a Windows server that I need to migrate to a new server in as short and efficient time as possible. (Think: Robocopy, Rsync, etc as I plan to use differentials to do this over time). …
4
votes
2 answers

Scheduled robocopy fails with error 3 (Creating Destination Directory)

Related: Scheduled Robocopy task fails with 0x10 error I'm using robocopy as part of a server backup script. It fetches the files to this workstation (Windows 7, upgraded from Vista - that caused some quirks before), and then copies them to a server…
Sašo
  • 1,494
  • 2
  • 10
  • 14
4
votes
1 answer

robocopy mirror, but do not use timestamps

Is it possible to use ROBOCOPY to mirror a directory, but ignore the sources timestamps? I've tried the following: robocopy \source\folder \destination\folder /MT:16 /PURGE /COPY:D /E But once I press enter, the summary screen shows the options…
heyjon
  • 123
  • 2
  • 9
4
votes
1 answer

Robocopy uses relative path for Source and Destination paths

I'm trying to use RoboCopy in my TFS Build Template to copy some files, but for some reason it inserts "C:\Windows\system32" in front of my Source and Destination paths, even though I am passing in absolute paths. I know that the robocopy.exe is…
deadlydog
  • 388
  • 1
  • 5
  • 10
4
votes
1 answer

Robocopy falsely marks files as newer

I have two NTFS formatted drives on different machines and I do a robocopy mirror between them like this: robocopy "D:\My Documents" "X:\Backup\My Documents" /MIR /V /NP /XD .* /XO /XA:SHTO /FAT /Z /ETA /DST /R:3 /W:30 But it will falsely mark…
Cinaird
  • 141
  • 1
  • 1
  • 4
4
votes
6 answers

Looking for a faster way to transfer file to a windows network share

Update: This is just for one way transfer. No need to sync. I am currently using Robocopy to transfer a huge file which is zipped and send to a remote network share. Is there a faster tool? Lately, file sizes have been increasing and the transfer…
Gulzar
  • 381
  • 2
  • 7
  • 13
4
votes
3 answers

Using ROBOCOPY to MOVE data around, not copy it

I have the following powershell script, which executes a few robocopy commands: ROBOCOPY.exe $q3 $q4 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD ROBOCOPY.exe $q2 $q3 /R:5 /W:15 /S /NP /MT:32 /XA:SH /XJD ROBOCOPY.exe $q1 $q2 /R:5 /W:15 /S /NP /MT:32 /XA:SH…
Nate
  • 2,151
  • 6
  • 26
  • 41
4
votes
4 answers

Robocopy really slow across LAN

DISCLAIMER: I'm a programmer, not an admin! I am setting up web apps in a new server cluster and copying files using xcopy or robocopy and UNC paths between servers on the same subnet is really slow. SOmetimes it seems to sporadically speed up,…
Brian Donahue
  • 141
  • 1
  • 1
  • 3
3
votes
3 answers

RoboCopy errors on Windows Server 2008

I am getting bizarre error with RoboCopy in Server 2008. It will randomly hang with "The specified network name is no longer available." error. Once that happens, it will continue to fail on the retries. But of course the remote server IS still…
user29985
3
votes
1 answer

Robocopy DCOPY:DAT invalid paramter?

I want to clone an sd card, trying to use robocopy. What's wrong with the following statement? ROBOCOPY e:\ c:\backup /MIR /COPYALL /DCOPY:DAT Output: Invalid Paramter #5 : "/DCOPY:DAT" What works would be a /DCOPY:T. But why can't I use the :DAT…
membersound
  • 275
  • 1
  • 5
  • 13
3
votes
0 answers

Copy large amount of file - better to "pull" or to "push"?

I need to copy a large amount from "old" server to "new" server. Both servers are Windows Servers Is there a difference if I go onto old server, access new server by unc path and "push" files onto new server vs. going onto "new" server and then…
Volker
  • 131
  • 2
3
votes
3 answers

Copying large amount of data between volumes on Windows 2008, fast method?

I need to copy data from/to very large volumes (2TB) on a Windows 2008 Server. Are there any tools I should consider using that maximizes throughput (hopefully with a resume-function)? I've always used copy/paste, wich have worked fine when I don't…
pauska
  • 19,620
  • 5
  • 57
  • 75