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.

272 questions
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
  • 173
  • 1
  • 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,152
  • 4
  • 13
  • 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
  • 2
  • 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…
2
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
  • 245
  • 1
  • 3
  • 12
2
votes
0 answers

Extreme Latency Using Storage Migration Service

Issue Summary: High latency experienced on LAN when running a Storage Migration Service job -- copy share data from one DC to another. Latency drops considerably when using a simple robo script. Detail: Traditionally, I've used robo scripts, which…
2
votes
0 answers

Which attributes/descriptors are changed by hardlinking a file on Windows?

I'm working on a little backup script using robocopy and hardlinks. My aim is to have differential backups using similar concept as rsync's --link-dest without having to resort to 3rd party tools. For those unfamiliar, the concept is that the first…
Disassembler
  • 246
  • 2
  • 7