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
3
votes
4 answers

Schedule robocopy run

I have Windows Server 2008 Enterprise. I need to copy files from network folder, I connected as a Z: drive. I need to schedule the copy. In scheduler I run it every 5 minutes. robocopy.exe Z:\ C:\destination /E I've tried to put it to .bat file,…
xeonet
  • 41
  • 1
  • 1
  • 3
3
votes
2 answers

Robocopy exclude directory in recursive file structure

This seems to be a popular question on the net, but everyone else seems to be OK with being able to specify only a portion of the full path in order to achieve a sort of wildcard. I need to be more specific, I think, as I've got a recursive file…
Geekman
  • 451
  • 1
  • 11
  • 21
3
votes
1 answer

Robocopy Blow Away and Recreate?

I have a question about ROBOCOPY which I have not been able to iron out in my research. When copying directories recursively with the /E flag and where the directory already exists at the target, does ROBOCOPY: delete the existing directory and…
onefootswill
  • 145
  • 6
3
votes
2 answers

Looking for robocopy ipg number

I have a robocopy job that creates a problem every time it runs. It saturates the bandwidth in such a way that no other traffic can get through. I read about the /IPG flag but am going in circles trying to find a number. I found calculators that…
eth0
  • 163
  • 1
  • 3
  • 12
3
votes
2 answers

Robocopy's copy criteria when MINAGE and MAXAGE is specified

What attribute does Robocopy look at when applying the MINAGE and MAXAGE flags? Date created or updated? If a group of files is created and later one of them is updated, if I run Robocopy with a later date range will the updated file be copied?
QueueHammer
  • 183
  • 2
  • 2
  • 9
3
votes
2 answers

How to detect robocopy's failure to delete from source?

On my SQL Server instance I use SQL Agent to run a daily backup job in two steps. One of the steps uses Robocopy to move local backup files to network storage. The command to move the files looks like this: robocopy M:\backups…
Iain Samuel McLean Elder
  • 1,232
  • 4
  • 15
  • 27
3
votes
3 answers

Copying files to a different domain, where no trust relationship exists

I have the the following setup. 1 x host machine situated in DOMAIN A 1 x PDC in a VM running on a host only network adapter running its own AD Forest (DOMAIN B) 1 x Server running in DOMAIN B, this is also on a host only network adapter but has a…
krystan honour
  • 153
  • 1
  • 1
  • 7
3
votes
1 answer

Robocopy: Why you no include same?

So here's my script: robocopy X:\WebApplications\Harrier\Stage X:\WebApplications\Harrier\production /is /e /xf: web.config robocopy X:\WebApplications\Osprey\Stage X:\WebApplications\Osprey\production /is /e /xf: web.config One would expect…
Code Silverback
  • 253
  • 1
  • 2
  • 8
3
votes
1 answer

Exchange DiskShadow/Robocopy backup does not purge log files

I have a series of scripts setup to backup my Exchange. The following command is executed to start the process: diskshadow /s C:\Backup_Scripts\exchangeserverbackupscript1.dsh This is exchangeserverbackupscript1.dsh: #DiskShadow script file set…
3
votes
1 answer

Why does robocopy take 8 hours to transfer one files that is 70-80gb?

We have a scheduled task that runs every night and copies a file of around 70-80gb from one server to another on our network. For some reason it has been taking ~8 hours to do this, which is a problem because it doesn't finish before our nightly…
Mike
  • 165
  • 1
  • 4
  • 15
3
votes
1 answer

How to delete files older than 30 days with robocopy?

I have two folders synchronised with robocopy (src and mirror) and I try to not removing files in the mirror before 30 days. I tried with /MINAGE option to say "consider every files older than 30 days" so that it only deletes 30-day old files in the…
3
votes
5 answers

Robocopy silently missing files

I'm using Robocopy to sync data from our server's hard disk to an external disk as a backup. It's a pretty simple solution but pretty much the best/easiest one we could come up with - we use two external disks and rotate them offsite. Anyway, here's…
John Hunt
  • 428
  • 3
  • 10
  • 20
3
votes
4 answers

Robocopy hiding folders on backup drives

I have a backup batch file that uses Robocopy to backup my files (note this example contains newlines that you should remove): robocopy "C:\" "G:\Default\RoboCopyBackup\C" /XF Pagefile.sys /XD "System Volume Information" "Recycler" "Temporary…
Neil Barnwell
  • 201
  • 3
  • 8
3
votes
5 answers

Alternative to robocopy /MIR

We run a number of web apps that store a lot of local data in small xml files. One part of our backup / recovery strategy is to produce a local mirror of the file system via a VPN to the hosting centre. The VPN connection is only via a 12Mbps ADSL…
Robin Day
  • 506
  • 1
  • 8
  • 19
3
votes
2 answers

Robocopy command is very slow over the network

I am trying to copy near to 2 TB files over the network using robocopy command. But it is really slow and now it's near to more that one day but still files are not copied. Robocopy "\DC01\Shared Folders" "\FP02\Shared Folders" /E /COPY:DATSOU /R:10…