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

learn more… | top users | synonyms

6
votes
2answers
1k 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
1answer
26 views

Robocopy Invalid Parameter /BYTES

I would like to use robocopy with the /BYTES parameter. When I use it I receive an invalid parameter error: ERROR : Invalid Parameter #6 : "/BYTES" I am using Windows 7. When I do a robocopy /? I ...
4
votes
4answers
16k 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 ...
3
votes
0answers
42 views

Robocopy from one to many

I am trying to use robocopy to update some internal AV clients that are not working. They will update once I the files are copied manually in. I've tried the following robocopy script, but can't get ...
0
votes
0answers
11 views

Copy folder structure template to current folder

When our users create a new Project folder, I would like it to automatically copy a template folder structure and the template's permissions. So far the only thing I've come up with is a batch script ...
0
votes
1answer
23 views

Robocopy Overwite IDENTICAL files but Rename Similar Files

Run-down 1: We need to copy files from one folder into another folder - Folder A -> Folder B (while preserving subfolder structure) 2: Some of the files in Folder A are IDENTICAL to files in ...
2
votes
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 ...
0
votes
1answer
1k 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 ...
1
vote
1answer
1k views

Long 'pause' after copying large files on windows 2008

I have a mystery regarding pauses after file copies on windows server 2088 (and other releases) When copying large files, like vhds, to locally attached USB disks I often see a long pause after the ...
0
votes
0answers
48 views

unknown user name or bad password with robocopy

Im trying to robocopy some folders in windows to a different windows server which is not shared via a perl script. I access them via \servername\drive$\path in the perl path. This script will be run ...
7
votes
3answers
7k 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
3answers
9k 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 ...
11
votes
11answers
57k 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" ...
39
votes
4answers
83k 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
0answers
39 views

Best way to spread ~4gb of data(windows updates) to ~50clients

I have a few Windows updates of a few operating systems. Those are made with the program wsusoffline and contain several .cab and .exe files. I got those on a USB. What is the best way to deploy them ...
0
votes
0answers
28 views

Using Robocopy to Move a directory including all structure and files to another drive

I have seen this question asked many times and the answers following the question seem to vary so much it is hard to believe there isn't one simple way of doing this. Problem: I need to merge the ...
0
votes
0answers
3k views

Reasons why Robocopy would skip a folder and not write it to the log file

I'm in the process of trying to troubleshoot a Robocopy job on Windows 2008 R2 SP 1 where the job states that a folder was skipped in the copy process (at the end of the copy job) yet does not show 1) ...
0
votes
0answers
53 views

Robocopy - change language

Is there a way to change the output language or robocopy? I have a lot of scripts that run and I find a script that extracts only important info from the output but works only in english which isn't ...
0
votes
0answers
58 views

Robocopy ignoring newer folders and files created after initial copy

When transferring a file share from one Windows Server 2012 R2 machine to another, I ran a robocopy command like this (from "server2"): robocopy "\\server1\e$\shared-folders\install" ...
1
vote
1answer
499 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
1k 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
90 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
676 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 ...
4
votes
2answers
9k 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
193 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
65 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
80k 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
44 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
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
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
4answers
6k 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" ...
14
votes
2answers
33k 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
3k 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
2k 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
609 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
5k 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
118 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
861 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
45 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
704 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
98 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
452 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
3k 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
258 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
751 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 ...
2
votes
2answers
6k 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
104 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
1k 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
467 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
13k 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 ...