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
24 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
120 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
153 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
286 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
276 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 ...
1
vote
1answer
2k views

One Way Syncing between two folders using a third folder

I want to create a one way sync between Folder A and Folder B so far so good and RoboCopy does the job. But Some of the files in Folder B will be moved to Folder C (not controlled by this system) So ...
1
vote
1answer
509 views

Robocopy command to winnow “empty” folders but keep subfolders with files

Have multiple-level folder trees with folders that have files and subfolders, other folders without files but with subfolders. I'd like to copy to a destination but not copy the folders lacking files, ...
1
vote
1answer
405 views

No logfile when combining Robocopy with Task Scheduler

I am trying to create a .bat file with Robocopy and schedule it using Task Scheduler in Windows 7. The issue that I am having is with the creation of the log file. When I click on the .bat file, a log ...
0
votes
1answer
25 views

Append a string in the log file (.txt) created using robocopy

Currently with this command: robocopy Y:\source X:\target\Test /log:Y:\source\dem.txt /s /njh /njs /nc /np /ns /tee I am able to create a log file (dem.txt) which contains the name of the files ...
0
votes
1answer
29 views

Windows 7 thinks every folder is shared

I have a hard drive that I'm moving thousands of folders off, which I would do either using robocopy /mov or windows explorer cut and paste. Robocopy won't move the folders, and explorer prompts me ...
0
votes
1answer
81 views

Wildcard in rename and robocopy command into batch file

What I am attempting to do is automate some work I do daily. What I would like to happen is a prompt saying What is your name? Then use that answer as a variable to be used in different commands like ...
0
votes
1answer
91 views

Robocopy not copying proper last accessed time stamps

I am using Robocopy 5.1.10 and it does not copy the last accessed time attribute on files. I am using below handlers with robocopy which copies all the data very well except the last accessed time ...
0
votes
1answer
275 views

Batch File:List all files of a type, rename files, flatten the directory

I am looking for help with a batch file(s) that will allow me to move all files of a particular type (*.PDF's for example) to a new folder. HOWEVER I would like to have features not readily apparent ...
3
votes
0answers
41 views

Robocopied files show in CMD but not in Explorer

I'm helping a friend to setup a back drive on his W7 machine. I installed a new hard drive internally to serve as a backup. I then wrote a simple script.bat that lives in his home folder, to be ...
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
163 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

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
32 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
23 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
80 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
55 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
615 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
47 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
537 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
417 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
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 ...
1
vote
0answers
687 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
135 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
204 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
347 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
14 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
24 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
22 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
62 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
402 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
125 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
45 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
72 views

Robocopy using souring source and destination pc as shared folders

Scenario: I have 3 pc's on the network. Lets name it A, B and C PC A - used to run robocopy. PC B - has shared folders on the network - source. PC C - has folders onto which files from B are ...
0
votes
0answers
39 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
40 views

Robocopy Wizards: Copy Multiple User's Stickies

Any Robocopy Wizards out there? Trying to figure out how to make a copy of the Stickynotes file (C:\users\UserName\AppData\Roaming\Microsoft\Sticky Notes\StickyNotes.snt) for all users, and place it ...
0
votes
0answers
38 views

Robocopy to Remote Windows Server

How do I tell robocopy not to create a directory on the remote server if its root directory does not exist? For example, Source: c:\temp\user1\ssh Dest: c:\temp\user1 ...
0
votes
0answers
57 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
52 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
339 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
215 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
367 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
236 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 ...