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

learn more… | top users | synonyms

2
votes
1answer
4k views

How do I use robocopy with a large number of excluded files?

I want to use robocopy to move a large number of files, except those that are in a whitelist. The whitelist contains approximately 150 files of different names. When I copy-and-paste the whitelist's ...
4
votes
3answers
4k views

Why did robocopy cause my Windows 2012 server to hang last night?

I'm in the process of decommissioning an old 2003 server, which acts as a file server, and am just attempting a dry-run of migrating the file repository over to a new Windows Storage Server 2012 box. ...
1
vote
1answer
2k views

Copy and Move Files from One Server to Another on Windows Server

I was asked to jump in and fill in for a colleague and write a Windows script that will run on server #2 and do: 1) Connect and authenticate to remote server #1 from server #2 2) Copy only files ...
0
votes
1answer
748 views

Using RoboCopy on multiple destinations with monitor option

I am trying to copy a shared folder which its content (folders and files) are created by a third party app at no specified intervals. I need to copy these files onto two different server shares. The ...
2
votes
1answer
494 views

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 ...
0
votes
1answer
152 views

cloning windows server 2008 OS drive to smaller drive using Robocopy

I'd like to clone a bootable OS disk using robocopy. The source drive is larger than the destination, but with plenty of free space. Is it possible, and if it is, what do I need to keep in mind to ...
1
vote
1answer
1k views

Robocopy won't copy from root folder

I'm having trouble with robocopy. It won't copy from "X:\files\". It just kills the batch file without writing anything to log, but it WILL copy from "X:\files\other files". Where "other files" is ...
2
votes
3answers
3k views

Robocopy Server 2003 does not support the /mt option

I am doing a rather large transfer (8TB) from inside our network to another network share. Most of the files are ranging anywhere to .1 MB to 15 MB. The machine that I need to do the copying on is ...
0
votes
1answer
603 views

Robocopy mirror to Samba keeps rewriting files

We have a Samba share to which I am copying files with robocopy /mir. Problem is the next time I try and sync that with robocopy /mir it copies all files again even though they haven't changed. I ...
2
votes
1answer
3k views

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 ...
0
votes
1answer
475 views

Robocopy for Microsoft Access Files MIR switch

We are using robocopy with MIR switch to backup our Microsoft Access Databases, i.e., .accdb, and .mdb files. Interesting thing with Access database files is that you can open a database, add a few ...
1
vote
2answers
2k views

RoboCopy A File From The Web?

Is it possible to download a file from the web using RoboCopy? What would the syntax for that be? Here's what I'm trying: RoboCopy "http://www.google.com/" "C:\some_folder\" "index.html" /L /V /E ...
3
votes
2answers
423 views

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 ...
2
votes
1answer
2k views

Mirror directory, only purging files in destination directory older than 7 days

I would like to mirror a directory, but only delete files in the destination directory older than 7 days. Situation: - Directory A is mirrored to Directory B. - A file from Directory A is deleted ...
2
votes
2answers
343 views

Robocopy with local catalog of remote data for incremental backup

I am currently using robocopy to an extremely slow destination. The compare between source and destination files can take a while to run through. Since the destination will never change (apart from ...
1
vote
1answer
202 views

Exceptional slowdown of robocopy copying from VM to DFS array

I've got an old win 2003 VM (VMware) on a blade cluster of VMs that I'm moving a considerable amount of files to our new DFS array. There are two main folders with about 1.7 million and half a million ...
3
votes
1answer
70 views

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, ...
0
votes
1answer
281 views

Robocopying DLLs and EXEs

I've used Robocopy for several years now for backup purposes, and never looked back at any backup application I used in the past. I replicate whole valued directories to a removable HD, than from ...
0
votes
2answers
2k views

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 ...
8
votes
2answers
14k views

Can Robocopy be made to skip open files?

We are using Robocopy to redistribute files which arrive via FTP in a drop folder. Ideally we want Robocopy to leave files alone if they are still being FTPd. Having tried various switches, Robocopy ...
-2
votes
1answer
813 views

Robocopy is moving files really slowly

I've had Robocopy running for about 24 hours now...it's moving 2.6million images across a network, and is probably less than 10% of the way through. Is there a faster way to do this?
-1
votes
1answer
702 views

robocopy advantages and disadvantages [closed]

Could you, please, list what do you think that are main advantages and main disadvantages of robocopy? Thanks.
1
vote
1answer
212 views

Backup/copy open files from network share on a NAS device

We have several network shares mapped via DFS (Windows Server 2008 R2) on external NAS. That NAS is simple and doesn't support snapshots. We are making backup from the NAS via robocopy but from time ...
0
votes
1answer
315 views

User home directory being deleted from the source

Here is our scenario, we used robocopy to copy over our file server to a new & improved server. We changed the home directory path in AD to reflect the changes. We updated our AD to reflect new ...
4
votes
1answer
9k views

Robocopy, do not overwrite existing files, but copy the changed / new ones

Is it possible to mirror the two directories without overwritting the files in destination directory with new/changed/deleted files. Something like snapshots. Example: Copy the source directory with ...
2
votes
3answers
15k views

How do I use Robocopy to exclude ALL subfolders under a chosen folder?

I'm trying to use Robocopy in a way that excludes all subfolders under a chosen folder. In other words, I only want to target a folder and robocopy only the files within it but not it's subfolders. ...
0
votes
1answer
261 views

Robocopy to copy each source subfolder to different destination folder

I have a folder structure like this: Source C:\Data Data1_timestamp Data2_timestamp Data3_timestamp Data4_timestamp Destination D:\Data Data1 Data2 ...
2
votes
1answer
620 views

Robocopy copies folders but not files

I'm using robocopy on a Windows Server 2008 R2 SP2 machine with the following options: robocopy W:\ E:\old_files\daten1\ /R:1 /W:1 /MIR /COPYALL /ZB /DCOPY:T /MT 50 /LOG:E:\old_files\copy_w.txt ...
1
vote
3answers
4k views

Robocopy and permissions

I have this issue, I am trying to copy home directory from one server to another using robocopy. Now, my issue is, would robocopy be able to bring over all the permissions as well? Here is the ...
2
votes
2answers
2k views

Robocopy MINAGE and MAXAGE

What attribute dose Robocopy look at when applying those flags? data created or updated? If I a group of files is created and later one of them is updated if I run Robocopy with a later date range ...
14
votes
3answers
4k views

On Windows: is it safe to do a robocopy in order to clone the system?

Let me start by giving a bit of a background. On Linux systems, I frequently rely on the fact that as long as I can get all files over from one hard drive to another, and as long as I fix up the boot ...
2
votes
2answers
3k views

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 ...
1
vote
1answer
198 views

Full backup, files copy or VSS for disk replacement on a Windows 2003 server?

I have to replace all disks of a Raid 5 volume for more space on a Windows 2003. I want to see what is the more reliable method to backup or move data of this volume (about 800 Gb). In first I was ...
6
votes
3answers
675 views

Backup with Mercurial and Robocopy?

The Problem We would like to backup our critical files from several network shares to a removable hard drive. We want to automate the backup so we don't have to remember to run it. It needs to ...
0
votes
1answer
250 views

rsync (or robocopy) from multiple computers - what happens?

If a Linux server has two different rsync jobs nightly for the same folder to two different destinations, do both destinations end up with the same end set of files? Or does the first job run, and ...
2
votes
4answers
1k views

Clone a windows server volume over a network — NOT make an image

I have a 5TB volume (non-bootable) on a Windows Server 2008 box. I need to copy it to another server over the network. Because the volume has 30 million files, filesystem copy tools like robocopy will ...
0
votes
1answer
310 views

Robocopy exclude folders/subfolders containing a file named nobackup.txt

We backup a large directory structure but want to exclude some directories. Is it possible to exclude subfolders when the parent folder contains a file named "nobackup.txt"?
0
votes
3answers
2k views

Recovering from incorrect robocopy /MIR using NAS drives

Yes I know how stupid I've been and will severely chastise myself once this has been resolved. Just to be clear, I've done a robocopy using the /mir switch and files not present in the source have ...
1
vote
2answers
7k views

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 ...
3
votes
1answer
172 views

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 ...
3
votes
1answer
2k views

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 ...
2
votes
1answer
113 views

Robocopy and Mercurial

I recently took a new job, and one aspects of the job is maintaining the organisation's Umbraco website. The site was not under source control nor was there a testing environment. Changes were made ...
1
vote
2answers
4k views

Do Robocopy copy efficiently large files?

in our small sized company we use Vmware. We backup the VM with Veeam. Resulting files are in order of 200-300 gigabyte per VM, for a total of 1/1.2 terabyte of data. I use robocopy to copy VM files ...
3
votes
1answer
896 views

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 ...
0
votes
3answers
4k views

How to use robocopy to move Users folder from partition c to d on Windows 7?

I just tried to copy my Users folder from partition C to partition D using the method mentioned in this post. Unfortunately I encountered two problems: When using the command robocopy c:\Users ...
2
votes
3answers
569 views

Best way to rsync a win2003 on linux

I'm currently dealing with a Windows 2003 (web) server, definitely not my cup of tea. The target is to download and keep synchronized some folders (~55GB) with a linux server. The windows server is ...
2
votes
1answer
2k views

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 ...
0
votes
2answers
856 views

Robocopy - Change Modified Date

I'm copying a file over to another directory and was wondering if Robocopy can change the modified date to the date it copied the file over in the new directory. I haven't been successful playing with ...
1
vote
1answer
1k views

Rsync from CIFS mounted Windows shares is slow. Why is this? Are there alternatives for file copy with checksum support?

I have found that using Rsync to transfer files from CIFS mounted shares resident on a Widnows client is extremly slow. I have read a few threads here on SF, and several other forum posts on the web, ...
0
votes
1answer
2k views

How to sync web site files cross Windows Web Server 2008 R2 servers in realtime?

I have a web site generating files at runtime, this web site is deployed on 2 servers Operation system, Windows Web Server 2008 R2. I am looking for a manner to sync the changed and new files from ...