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

learn more… | top users | synonyms

1
vote
2answers
1k views

Roaming Profile Permissions and Migration

Currently a client as 2003 DC and we are migrating them to a 2008R2 on a 2012 Hyper-V Host. They have a handful of roaming profiles - but with the usual setup - i.e. the only permissions on the actual ...
6
votes
3answers
5k views

Combining RoboCopy with FtpUse

Our clients need to transfer specified files from their network to ours through FTP. The transfer must be invoked automatically whenever one of the specified files changes. For this purpose, RoboCopy ...
1
vote
1answer
475 views

Overriding destination directory from ROBOCOPY Job file?

I am using Robocopy for backing up my project directories to an external disk, and it works like a charm. Except for one little issue: sometimes, I wish I could override the destination directory ...
18
votes
1answer
990 views

User accidentally messed up a Robocopy command and caused a bunch of folders to get created with corrupt security

We had a user run a robocopy command to copy some files but unfortunately the user accidentally messed up the syntax. Something like: robocopy "\\server1\share\Accounting" ...
0
votes
0answers
36 views

Is this the Right Way to Perserve Owners, Permissions and Attributes when copying files with robocopy?

Note: This example is making a copy of an existing directory to an non-existing prior to copying directory. Note: When my scheduled tasks were giving me an error, this is how I went about ...
0
votes
1answer
94 views

Make incremental and differential backups with Robocopy?

I wanted to know if it is possible to make incremental and differential backups using just Robocopy and arguments. Putting it in a simple bat and making that bat run in Task Scheduler seems like a ...
0
votes
1answer
58 views

Robocopy script copied permissions/subfolders everything but NOT shares

I ran this command on my new server: ROBOCOPY "\\oldserver\e$\folder" "e:\folder\" /COPYALL /SEC /MIR /LOG:logs.txt It copies all permission and mirrored my folder but later I realized that shares ...
3
votes
2answers
7k views

Can Robocopy be configured to only log the “errors”?

Can Robocopy be configured to only log the “errors”? On a large copy job, I’m really only interested in knowing what files were NOT copied.
0
votes
0answers
50 views

Robocopy cannot find specific directory

I am migrating our file server from 2008 to 2012R2. Currently i am trying to copy all folders and files to our new server but the command isnt working correctly. Here is what i am using: robocopy G: ...
1
vote
1answer
51 views

SID not being set on

I copied two trees with robocopy, a source and a destination, with the intent of making their permissions exactly the same, I ran the following commands: robocopy /MIR C:\Windows\System32\tasks\ ...
13
votes
1answer
37k views

What is a S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX called in Windows security?

I copied two trees, a source and a destination, that I copied with robocopy like this: robocopy /MIR C:\Windows\System32\tasks\ C:\temp\robocopyTasks\out\ robocopy /E /Copy:S /IS /IT ...
-1
votes
1answer
27 views

Using robocopy to correct date and time

After using robocopy to copy files to a new drive I realized that all the files and directories creation times had been reset to the time of copying. I now know that is standard for Microsoft. I have ...
2
votes
1answer
1k 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 ...
9
votes
10answers
48k views

Robocopy: How to move the content of a directory but KEEP the directory

Simple task: Move all the content of the directory c:\Users\files\Desktop\test 2 to c:\Users\files\Desktop\test 1 C:\admin\temp>robocopy "c:\Users\files\Desktop\test 2" ...
3
votes
4answers
14k views

Why does RoboCopy create a hidden system folder?

I thought I would try out RoboCopy for mirroring the contents of a folder to another harddrive. And seems like it worked. But, for some reason, to see the destination folder I have to both enable Show ...
2
votes
1answer
1k 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 ...
37
votes
3answers
73k views

robocopy transfer file and not folder

I'm trying to use robocopy to tranfer a single file from one location to another but robocopy seems to think I'm always specifying a folder. Here is an example: robocopy "c:\transfer_this.txt" ...
0
votes
4answers
4k views

Robocopy fails in Scheduled task with ERROR 1326 Logon failure

My aim: To simply mirror a database backup directory onto another server Approach: Use Robocopy statement contained in a scheduled task robocopy "C:\MylocalDirBackup" "\\MY.IP\DatabaseBackupsShare" ...
13
votes
2answers
27k views

What switches can robocopy use to preserve file and directory times on the target?

After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying. Are there some switches to make robocopy keep the ...
1
vote
5answers
2k views

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

PathTooLongException error when using Get-ChildItem

I'm trying to generate a list of all known file on a file share with Attributes "Archive + Offline". But I keep running into PathTooLongException errors. So far I've only found that Robocopy can work ...
0
votes
1answer
340 views

Robocopy - Share to Share copy over network - Files did not end up in the expected location

A client of mine recently got a new Windows 2012 server to replace an old Windows XP Professional computer we were using as a file server. Everything appeared to be copying fine, I stored a log file ...
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. ...
4
votes
1answer
95 views

Robocopy from list.txt

I have a ton of user directories, that I need to move along with permissions to another location, the command I use on an individual basis is : robocopy "\filer\home" "h:\UserHome" /E /SEC ...
2
votes
2answers
512 views

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

where can I learn the limitations of /LEV:n option of Robocopy command

Hey I am moving a file server to another datacenter. I use robocopy but I don't know the limits of the /LEV:nutility. Is this "n" can be 100 or something for some crazy admins? I searched but I didn't ...
1
vote
1answer
334 views

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

Windows Server to Server copy, executed remotely, process overview

Ok so I've got 3 servers in this example Server_A, Server_B, Server_C I want to move data over the network from Server_A to Server_B by executing a batch script on Server_C, it would be something ...
0
votes
0answers
360 views

Using Robocopy to copy only missing and older files

A few days ago I added a new member server to a DFS folder replication and refferal, DFSR started the initial replication. Yesterday I got an event in the logs from DFSR (4104), telling the initial ...
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 ...
3
votes
1answer
192 views

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 ...
1
vote
3answers
529 views

Fastest way to mirror directory over network

I am looking to speed up my deployment process, currently I have a single staging server, and a web-farm in production. I currently use robocopy to mirror each web-farm server from the staging ...
0
votes
0answers
208 views

How do I make robocopy over WinRM behave like over RDP?

I'm trying to use robocopy to sync two file shares on computers NAS001 and NAS002. To check what files should be synced, I use this command while connected to NAS001. robocopy G:\Software\SQLServer ...
2
votes
2answers
4k views

Automate Windows Robocopy with internal changes monitor /MON:1 option

The /MON:1 option works just great and run directory scan if only changes happened. This is something that is not possible to do if robocpy is ran from windows scheduler each 10 min. Is there a way ...
2
votes
1answer
89 views

Is file copying limited by free space on C drive?

I have some Windows Server 2003 and 2008 boxes that have files I need to copy that are in the range of 20 GB to 80 GB ranges. The 20 GB files transfer without a problem from one server to another ...
0
votes
1answer
786 views

robocopy says its receiving invalid parameters in when used in powershell script

I'm attempting to use robocopy in a PowerShell script, but currently failing. When I run the following command manually robocopy \\corporatesystem00.local.com\C$\Maven\ ...
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
3answers
11k views

Robocopy failure with Windows Server 2008 Scheduled Task

So I have a batch script for robocopy. Running this from the command line does exactly what I want. robocopy "D:\SQL Backup" \\server1\Backup$\daily /mir /s /copyall ...
6
votes
1answer
936 views

How to get robocopy summary information involved in powershell?

I have a quick script written to compare file differences across servers, and then give a prompt for whether to mirror the changes. I'd like it to intelligently NOT prompt for copying if there aren't ...
2
votes
5answers
6k views

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

Robocopy Ext USB HD to Server 2008

I tried copying data from an external usb drive to my W2008 server, g:\parent_directory d:\server_shared\parent_directory. Unfortunately, I picked the "copyall" paramenter which copies over D=Data, ...
0
votes
0answers
49 views

robocopy, robocopy with multithreaded option

i want to move folder structure from one location to another location "\ASDFS\ASDFSD\234234" to "\23423\SDFSDF\ASDFSDF" "\ASDFS\ASDFSD\234234\UIOUI" to "\23423\SDFSDF\ASDFSDF\TYUTYU" ...
2
votes
2answers
6k views

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 ...
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
3answers
2k views

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

How to abort robocopy on first error

When using robocopy windows utility, what flags do I set so that robocopy aborts on the very first error it sees, similar to xcopy /dry command? I need to mirror two dirs, and on occasion some files ...
0
votes
1answer
92 views

Robocopy files to different destinations - per file

I'm trying to mirror a direcory with images to a set of detination folders, where each folder receives only a part of the source directory. Example say the source contains 10 images: 1.jpg, 2.jpg, ...
2
votes
1answer
3k views

Creating a service to run RoboCopy

I'm attempting to put together a batch file that will set up a robocopy task as a service in response to user input. The basic idea being that the user will input MyRobocopyBatchFile.bat sourceFolder ...
0
votes
1answer
3k views

ERROR 1307 (0x0000051B) - While copying with Robocopy - None of the known sollutions work

I'm trying to copy a folder from one harddrive to another using the folowing robocopy options: robocopy "H:\Source" "T:\target" /E /COPY:DATSO /R:1 /W:1 /DCOPY:T /Z /LOG:T:\Belfirst_copy.log /NP ...
1
vote
1answer
238 views

A Robocopy job to copy files from VM Windows 2003 to a windows 2008 DFS Share over WAN

I have the following in a bat file running as a scheduled task on the VM Windows 2003 server robocopy "d:\Folder\Sub folder" "\\prod.local\shareddata\Loc\Folder\SubFolder" /S /R:0 /W:5 /NP /NS /NFL ...