Robocopy (or "Robust File Copy") is a command-line directory replication command.

learn more… | top users | synonyms

2
votes
1answer
1k views

Batch file to move/compress/delete files

I am trying to write a batch script that will run automatically daily to do the following: Move files older than 2 days to from the main directory (Jason) to an archive directory. Zip files in the ...
1
vote
1answer
67 views

Copy specific folders on Windows (robocopy)

I want to do some thing simple (I thought...) I've got something like this: Folder01 |_File1 |_File2 |_File3 Folder02 |_File1 |_File2 |_File3 Folder03 |_File1 |_File2 |_File3 ...
1
vote
1answer
167 views

Robocopy - Backup only new files

I have an access to a network drive where news folder are created everyday. This drive is named G: I want to backup all the folders from G:\ to D:\WebUpload Being given that there are a lot of ...
1
vote
1answer
219 views

Powershell script to be called by serveral servers to copy log files to remote location

We have several servers that save log files locally and I'm trying to automate logging to a single network location with a name of the parent folder where log files are stored and date modified time ...
1
vote
1answer
404 views

Copy based on last modified date of files

I want to copy from below source dir to the desired destination as shown below. Source dir: --Dummy ----dirA (contain files last modified 2/7/2015) ----dirB (contain files last modified 3/7/2015) ...
1
vote
1answer
312 views

Error 5 (Access Denied) copying files - Script that once worked stopped mysteriously

I am baffled. I've been running a robocopy script on my Windows XP box for several years without trouble. Recently, it has been failing occasionally with error 5 - access denied. My script is a ...
1
vote
1answer
2k views

Hidden folder in Robocopy

I'm trying to backup a hard drive with two partitions on it to another drive with only one partition using Robocopy. I am running my commands in PowerShell. The source drive is a USB2.0 drive and the ...
3
votes
0answers
6k views

ROBOCOPY /MIR (or /PURGE) follows and deletes target symlinks

Let's say we have a folder SOURCEDIR to be synchronized with TARGETDIR. The problem: if TARGETDIR contains directory symlinks, ROBOCOPY /MIR (or /PURGE) will follow the symlink, and delete every file ...
2
votes
0answers
210 views

is robocopy over a network share secure against eavesdropping?

IMHO using robocopy for copying files to a remote windows network share should use the encrypted channel provided by windows file sharing ove a network. Can anyone confirm? Thank you.
2
votes
0answers
2k views

How to use Robocopy in true restartable mode

I am currently using the /Z flag in a Windows Robocopy command with the intention of creating a "restartable" copy job. However, when the copy command is re-executed after an interruption, the copy ...
2
votes
0answers
2k views

command line remove read only flag on all subfolder entries or overwrite read only files with robocopy

I need one of two things to work: I use robocopy to copy all sub-files and sub-folders from one folder to another, and the destination contains older files + files not in the source, and I need the ...
1
vote
0answers
28 views

How to back up only newer files

I wrote years ago a script using XCOPY with parameters /E /D /Y /V /R /H that allowed me to back up newer files to my dropbox having always everything updated. Since I upgraded to Windows 7 and 10 ...
1
vote
0answers
38 views

Robocopy not seeing new files if in the middle of copying a file

Doing some testing with robocopy on Windows 7 from local disk to a USB stick with this command (mostly copied from another post): ROBOCOPY c:\RC_Source d:\RC_Dest /E /ZB /XJ /XF "~." "~." ...
1
vote
0answers
99 views

Why does robocopy still try to copy Thumbs.db even with XF option?

Using robocopy (version 10.0.10586.0) on Windows 10 to copy files from one drive to another using the following command: ROBOCOPY c:\src D:\dest /MIR /COPY:DT /DCOPY:T /XJ /XF Thumbs.db /XD ...
1
vote
0answers
25 views

Robocopy GUI log shows 1 skipped but none were

I copied 145 mb with Robocopy GUI. Source and Destination show exact same properties (# of files, directories, and size). The log file shows 100% at the end of every line. I assume that means ...
1
vote
0answers
102 views

Why is Robocopy frequently crashing on Windows 8 systems?

Since years we are using Robocopy to replicate files between Servers around the world. Now we have Windows 8 64 BIT Servers in China to which we have to replicate some files. But with this OS we ...
1
vote
0answers
63 views

Robocopy /purge only without archive attribute

i am working on a robocopy command to sync different folders. But for some reasons i just want to delete with purge the files without an archive attribute. Is this possible? /Purge /E /NOCOPY ...
1
vote
0answers
630 views

Can the “Are you sure you want to copy this file without its properties?” halt be stopped when copying files?

When I copy data on my computer, I get a dialogue box with the message Are you sure you want to copy this file without its properties? I know why this message pops up, but it does not make it ...
1
vote
0answers
48 views

I copied a folder with copy&paste instead of 'xcopy'. How to fix that?

I copied a folder (Windows Server 2003) with copy-paste instead of 'xcopy' or 'robocopy'. Now I lost the original permissions, and I can't re-do the copy process (can't access the original folder). ...
1
vote
0answers
562 views

Robocopy; How to copying missing files to a different location from original copy?

I am using Robocopy to transfer around 1 tb worth of files from an external drive to a virtual Windows Server 2008 machine hosted on an ESXi 5.1 VMWare server using USB pass-through. I used the ...
1
vote
0answers
444 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 ...
1
vote
0answers
773 views

Permissions issue migrating data across domains

I have 2 domains, lets call them "OLDDomain" and "NEWDomain". The previous admin "migrated" the users from OLDDomain to NEWDomain by painstakingly going through active directory user by user. Then ...
1
vote
0answers
141 views

RoboCopy sees two files as changed when they are exactly the same

Using RoboCopy I am copying large sets of files between storage devices and have noticed some strange behavior: On many occasions where the source and destination file are the same, RoboCopy sees the ...
1
vote
0answers
212 views

Robocopy mir deletes files when network goes down?

I've inheritted some server backups and I heard from the person that if the network goes down while robocopy is running it will wipe all the destination folder if /mir is used. He said it is because ...
1
vote
0answers
1k views

using robocopy to mirror folders as a scheduled task without users logged in

I have two servers, one local user with the same password and username. It will always be a one-way transfer serverA --> serverB. I created a scheduled task that runs (on serverB) robocopy ...
1
vote
0answers
351 views

Windows Junction / Move File Issues

I am working on a computer where I am moving C:\Users\User to D:\Users\User and I am going to create a junction. All files moved successfully during the move except: My Pictures My Videos ...
0
votes
0answers
26 views

Robocopy problems - skipping files and ignoring /IS switch

I'm experiencing a weird problem that I cannot fix. I've simplified and narrowed down the problem in the following example: I've got 2 identical folders: D:\test D:\dropbox\test They both contain ...
0
votes
0answers
13 views

Moving folders and their content by the folder date and keeping the original time and date

I've checked several software packages and tried testing with Robocopy to move folders by their creation dates regardless of what the dates of the files are inside. Can this be done? It needs to be ...
0
votes
0answers
15 views

Movings files older than a certain date with Robocopy (Win 7)

I'm trying to move all files older than a certain date in a directory and all subdirectories to an Archive folder I set up. All it is doing is listing what is already in the Archive folder. I feel ...
0
votes
0answers
29 views

Backup an arborescence from Robocopy /CREATE to WinRAR archive in one step

I would like to know if it's possible to save a large arborescence / file tree using Robocopy with /CREATE switch (which creates zero byte files -- the purpose is to have a reference of the ...
0
votes
0answers
40 views

Merge folders and keep different file versions

Is it possible to merge multiple folder and keep all files in e.g. Windows 10. I was thinking about something somehow similiar to the Windows File History. For example, i have 2 folders (c:\folder, ...
0
votes
0answers
27 views

How to gentaly stop Robocopy

Since Robocopy is monitoring the source folder at least 1 minute or more, but one of my task needs to monitoring the source folder and move files shorter than 1 minute, like 10 seconds. A work around ...
0
votes
0answers
24 views

Robocopy e Compare Commands

I have two problems. I used ROBOCOPY to backup my external HDD in another external HDD. After skipping Error 2 and Error 5 using the following line: C:\>robocopy E: G: /e /r:3 /w:1 /sec /mir /z ...
0
votes
0answers
21 views

Robocopy: how to sync renames without deletions?

Basically I'm trying to emulate SyncToy's "Contribute" in Robocopy. "New and updated files are copied left to right. Renames on the left are repeated on the right. No deletion" With /purge it ...
0
votes
0answers
24 views

Robocopy keep directory structure intact but include a large number of files

My question is basically the same as this one except I have a list of 370 files that have to be copied from source to destination. So my initial directory looks like folder1 folder2 folder3 ...
0
votes
0answers
29 views

Which of these robocopy options caused data loss

I was making one last backup copy of contents of an old hard drive I'm about to repurpose, and ran the following command (in an elevated shell) to try to move old documents: robocopy Documents\ and\ ...
0
votes
0answers
29 views

Robocopy - misses files during copying (win7 Pro)

I'm using Robocopy to copy 60GB from one server drive to 2 drives in a dual (Duet) USB docking station. The commands used (both run at the same time) are: robocopy "i:\datax" "f:\datax" /copy:dat /e ...
0
votes
0answers
117 views

How to reconnect hard drive without having to reset computer?

So I've recently needed to copy some large folders (35GB+) from my SSD to my 1TB internal storage HDD. I tried to manually copy the files but after some time the copying would just freeze so I did ...
0
votes
0answers
2k views

What is backup mode in Robocopy

I am trying to copy a large database backup file over network. The traditional program copy or xcopy failed with different binary resulted. Also tried robocopy without parameter, and resulted a ...
0
votes
0answers
169 views

robocopy cannot find the path specified

I wrote a small BATCH-File to sync my PC and Notebook folders for university. REM set tdate=%date: =% REM set tdate=%tdate:/=% REM REM set ttime=%time: =% REM set ttime=%ttime:.=% REM set ...
0
votes
0answers
51 views

Fast acces to OneDrive as file system for backups

I was going to use the robocopy utility from Windows 10 to backup some folders to my OneDrive storage as described in this article: ...
0
votes
0answers
40 views

Full copy OS drive via network

I want to use Robocopy to copy entire "C:" drive from one machine to another. problem is that on this machine there are many files that are opened by other processes since this is the OS drive. how ...
0
votes
0answers
71 views

Robocopy files only with a certain date

I am looking to copy files from x: to z: only if the destination file has a date changed of 9/23/2014. If the destination file has an older or newer date, don't touch it. X is my backup and Z is the ...
0
votes
0answers
55 views

Robocopy - Data Copy - Reading files

I copied the data from one server to the other using robocopy. on source server - one particular file cannot be opened Target server - The same file opens on double clicking NOte: I have copied the ...
0
votes
0answers
357 views

Robocopy (without /l flag) running for hours making log file huge, but not actually copying anything

Here's my command: Robocopy C: C:\C_root /FP /BYTES /TEE /S /E /COPYALL /DCOPY:T /MOVE /Z /ETA /XJ /R:2 /W:30 /XF pagefile.sys /XD /LOG:C:\robocopy.log. BTW, notice the /XD option above. ...
0
votes
0answers
228 views

Copy in use files with security Permissions

Is there a free Windows utility that will let me copy folders and sub folder contents with their NTFS security permissions and let me copy in use files?
0
votes
0answers
389 views

Does robocopy mir switch, on a single file, only add the changed parts to destination file or makes a full copy?

The headline says it all I hope but just in case I'll ellaborate. File A is a word file with 50 pages, it's size is 47 kb. File A is copied from source folder to destination folder. File A is then ...
0
votes
0answers
255 views

Disk size data is inconsistant (more then i can hold)

I have several disk partitions, i made then each 250gb. I used robocopy to copy one partition to another I got an error the destination disk is out of space. wtf they are the same size. I right ...
-1
votes
0answers
16 views

Robocopy backup alternating /E and /MIR

I'm writing a bat file for doing backup work to a external HDD with Robocopy. After reading about /e and /mir I thought I could make 2 scripts and alternate between them: everyday I run the bat file ...
-1
votes
0answers
29 views

Robocopy Windows 7 move specific file type

I have seen plenty of posts on SE on how to copy files of a specific type from one folder to the next I have tried to replicate a toy example where i would like to keep all the file attributes etc in ...