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

learn more… | top users | synonyms

1
vote
2answers
1k 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.
3
votes
1answer
36 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
5k 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
2answers
3k 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
29 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
12 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" ...
1
vote
2answers
2k 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 ...
4
votes
1answer
2k 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
2answers
4k 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 ...
0
votes
0answers
156 views

Copy lots of files and symlinks for Windows Server to another

I have a quite nasty problem with a simple task: copying files from an old file server to a new one. A short description of the situation: The old server is W2k8 R2 and hosts about 25 TB of data, ...
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
629 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
0answers
13 views

Duplicating a complex folder structure with only shortcuts

There are 2 shared drives. One of them has a very complex folder structure. I would like to replicate the entire folder structure of Share 1 to Share 2. However I don't want to make duplicate files, ...
0
votes
1answer
34 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
162 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
805 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
93 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 ...
2
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 ...
-4
votes
1answer
41 views

Move files with robocopy instead of copy [closed]

robocopy B:\Foo\ D:\890001 /MIR /COPY:DT /FFT Am using the above to copy files from A to B, however I wish to move the file not copy. How can this be done without its function being compromised?
0
votes
2answers
108 views

Robocopy not working for Active Directory snapshot backups

I am trying to automate backups of a Windows 2008 Active Directory database (ntds.dit). Mounted AD snapshots get created in C:\$SNAPxxxxxxxxxx\Windows\NTDS. The script below works for creating, ...
2
votes
2answers
68 views

Replacing a fileserver within a domain

We're upgrading our fileserver running on Windows 2008 R2 Standard, and it's part of a Windows 2008 Domain. We would like to migrate the files over retaining all the permission and later reuse the ...
0
votes
0answers
61 views

Performance of RoboCopy when complex folder structure & files are to sync

I would require some recommendations from you about the challenge that I am currently facing. Background : There are Network Attached Storage in the US and India Office. All the data currently ...
0
votes
1answer
67 views

Could the IPG parameter in Robocopy cause TCP/IP packet problems if it is too high?

I need to throttle a robocopy transfer to limit bandwidth usage. It is already set to 1500 (/IPG:1500). I would like to increase this IPG to around 2000 (or more) in order to lower even more the ...
1
vote
4answers
10k 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 ...
0
votes
2answers
645 views

Robocopy job will run manually but not as a scheduled task

Using Robocopy on Server 2012. I have created a .cmd script to copy some files from a mapped drive to the local machine. The mapped drive is on another server in a different domain and connects with ...
2
votes
4answers
205 views

Looking for fastest way to sift through old files

We have multiple file servers where I work containing terabytes and terabytes worth of files. We have no system in place currently for archiving/deleting stale data. My task is to create a script that ...
2
votes
2answers
167 views

Robocopy - how to discard timestamps

I'm trying to copy some files to a folder where there are already older versions of those files with the robocopy tool. And in order to differentiate versions, I'd like to set the timestamp to "now" ...
0
votes
0answers
21 views

Copy and Replace files based on destination directory structure

We got the nasty Crypt Locker virus on one of the workstations and it corrupted a bunch of files on the network drive. We have a backup, but it includes all the files till the last backup was taken, ...
3
votes
1answer
183 views

NAS Migration: Preserve “Previous Versions” shadow copies

We're planning a forklift upgrade of our NAS and were going to use a utility like Robocopy to move the files over. However we'd like to preserve Windows' "Previous Versions" shadow copies. Any way to ...
1
vote
0answers
53 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 ...
2
votes
4answers
9k 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. ...
1
vote
1answer
245 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 ...
12
votes
6answers
24k views

How to get robocopy running in powershell?

I'm trying to use robocopy inside powershell to mirror some directories on my home machines. Here's my script: param ($configFile) $config = Import-Csv $configFile $what = "/COPYALL /B /SEC/ /MIR" ...
0
votes
2answers
1k views

Copy large amount of small files using robocopy from USB disk to SATA disk

Would specifying the /MT option in robocopy give me better or worse performance, when copying a large amount of smaller files (~10-150kB) from an USB attached drive to an internal SATA drive? Should I ...
0
votes
4answers
2k 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" ...
3
votes
5answers
171 views

How can I take a one time full backup of a Windows Server without the need for a restore program?

I have a Windows SBS server with about 500GB of data that I'm decommissioning but I'd like to take a final backup of the server and place it on an external USB drive. I already have multiple backups ...
7
votes
10answers
29k 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" ...
0
votes
1answer
150 views

Copy Files/Folders on Windows Volumes Created from Mac

We are trying to migrate storage from one volume to another, and we are running into problems with folders and files created from Mac OSX. The current file storage is on windows, and unfortunately ...
2
votes
2answers
6k 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 ...
1
vote
1answer
211 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
44 views

Copy directories modified by specific users within a certain time frame from an FTP [closed]

I am trying to cleanup a 12TB Windows FTP with several million files. Basically, I want to keep the directories that are still being used by a specific subset of users who had access, and only keep ...
0
votes
1answer
118 views

Copy over lan : best way to segment copy?

I do not really know where to post my message. Networks or system or scripting, so ... I have a requirement in my company. Here is the goal : Monthly I'll have to copy a package> 500MB on 25 ...
2
votes
1answer
635 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 ...
11
votes
5answers
12k views

The Job and Monitoring Options of RoboCopy

What does the Job Options of RoboCopy do? And what exactly does the /MON and /MOT switches do? How can I use them? I don't understand them, and can't find any examples on how to use them. ...
0
votes
0answers
119 views

Robocopy: /maxage not working?

I'm running robocopy on a huge directory. I can safely ignore about 99% of the data -- everything more than 10 days old. So I tried this: robocopy sourceDir \\1.2.3.4\destDir /s /MT:32 /NP /MAXAGE:10 ...
1
vote
1answer
252 views

Robocopy and NTFS Permissions

If as an administrator I remove all permissions from a folder - and set the owner to another user in Active Directory, I will not be able to copy that folder through explorer to another folder/drive ...
0
votes
1answer
204 views

How many threads is robocopy really using?

I'm trying to copy a huge number of small files (30M x 150k) from one server to another over a network, like this: robocopy sourceDir \\1.2.3.4\destDir /s /MT:32 /NP /LOG:d:\robocopy.log The copy ...
0
votes
0answers
1k 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) ...
1
vote
3answers
2k views

RichCopy - Suppress Splash Screen and Run Quiet?

RichCopy looks to be a great tool with some features that RoboCopy lacks. I'm trying to use it to back up media on a Home Media Server project I'm working on so I need to be able to run it from ...
1
vote
1answer
201 views

Minimum level of access required for service account to run a scheduled task on server?

We have 2 domain administrator accounts in Active Directory: "Administrator" and "Robocopy". Robocopy is a service account associated with a scheduled task which executes a batch file- which runs ...