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

learn more… | top users | synonyms

0
votes
0answers
27 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
0answers
24 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 ...
2
votes
2answers
142 views

Use OneDrive as additional backup location

I'm trying to take advantage of the fact that OneDrive now offers unlimited space, and allows these files to not take up space locally. I already have a backup system in place, but I would like to add ...
5
votes
2answers
14k views

How to copy ONLY those files that are not in the destination?

Is it possible to use robocopy to copy only the files that do not exist in destination? robocopy has a /is (include same files) switch. What I am looking for is an /xs switch. If a file exists in ...
0
votes
1answer
3k views

Robocopy copying files from source to destination in backup mode and with file security permissions intact

I need to utilize robocopy to mirror files and folders from one shared location to another shared location, in restartable backup mode with security permissions. My current command is: robocopy ...
0
votes
0answers
25 views

Robocopy equivalent in Linux that supports Multi-threading

I personally love Robocopy for one major feature. The /MT command to allow multi-threaded connections. Is there an equivalent tool in Linux that provides the same functionality? Its really useful ...
0
votes
0answers
13 views

Skip previously faulty files on a robocopy restart

I'm copying large amount of files from a cloud drive. Over TB totals with file sizes around ~10mb. A lot of them became corrupted with time. My network is unreliable and I have to restart robocopy ...
3
votes
4answers
2k views

Using Robocopy for file rotation

I am looking for a way to use robocopy to rotate log files. Currently I have a batch file using robocopy to copy files and log the results to a specified folder location. What I would like to do is ...
3
votes
1answer
667 views

ROBOCOPY command to do an incremental backup

I am overwhelmed by the ROBOCOPY documentation. I want to do an incremental backup of my local files to the network drive (M). I want it to run as quickly as possible, with no log file and with as ...
1
vote
1answer
24 views

Windows Use Robocopy to copy all files except .sas7bdat

I know that if using robocopy to copy only files of type .sas7bdat I would use the following code, ROBOCOPY C:\source C:\destination *.sas7bdat /E How can I reverse this to copy all file types ...
35
votes
7answers
22k views

Getting ROBOCOPY to return a “proper” exit code?

Is it possible to ask ROBOCOPY to exit with an exit code that indicates success or failure? I am using ROBOCOPY as part of my TeamCity build configurations, and having to add a step to just silence ...
0
votes
0answers
16 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
1answer
2k views

why does robocopy say this file is older?

why does robocopy say this file is older? Robocopy shows (I think I used /MIR and /L) 2 M:\bk\laptopcopy\pics\ Older 79248 regular-expressions-cheat-sheet-v2.png ...
0
votes
0answers
18 views

Robocopy /Z switch - copy not resuming after killing the process

I am creating a wrapper windows service for robocopy and I have design need to sometimes kill the robocopy process during large transfers but when I restart copying using robocopy, it just starts ...
0
votes
0answers
52 views

Does robocopy /Z not reliably work when aborting the process?

I am copying some large files from a slow NAS to a local machine. The command line is quite simple robocopy /Z P:/Data D:/Data There are some very large files and I would like to power off the ...
1
vote
1answer
81 views

Copy folder structure on Windows except for one folder with files

I need to copy folder structure without files except for one sub-folder. That is I want to copy the folder structure without files plus only one of the sub-folder to be copied with its content. I can ...
0
votes
1answer
84 views

robocopy /mir not duplicating folder structure

I'm using the following script to archive everything prior to Jaunary 1, 2013: foreach ($i in Get-ChildItem "O:\Projects” -Force -Recurse) { if ($i.LastWriteTime -gt ($(Get-Date).AddDays(-649))) ...
1
vote
0answers
51 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 ...
5
votes
2answers
1k views

Windows 7 Delete heavily nested folder structure

I was running a node script that went awry and created a folder structure like so: \myfolder \myfolder \file.txt \myfolder \file.txt \myfolder ...
-1
votes
1answer
24 views

Copy file by type with folder structure

I have a big tree of file something like folderA folderB file.any file.txt folderC folderD folderE file.txt file.any I need to copy all *.txt files with folder tree. ...
1
vote
0answers
76 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 ...
3
votes
5answers
10k views

Robocopy permission denied

Robocopy is preinstalled with Windows 7. I've used it many times in the past. I tried to copy a folder to a remote share with robocopy c:\source "\\server\share\path" /s /r:2 /w:2` As a result I ...
1
vote
5answers
783 views

How can I copy files from A to B, only including files that exist in B?

I'm on Windows 7 Professional, and this is my scenario : Folder "Asd" (C:\) Folder "Asd" (D:\) File 1 File 1 File 2 File 3 File 3 ...
0
votes
1answer
52 views

How do I tell robocopy to ignore timestamps?

I have two copies of my Music directory on separate drives. One is a thumb drive that I carry around with me so I can listen to whatever whenever. Initially I copied this directory to the thumbdrive ...
2
votes
3answers
7k views

Why can't a Task Scheduler job access a mapped network drive?

I have a Task Scheduler job to run Robocopy for backing up local files to a network share. I have to use domain credentials to access the network share but the local computer is not on the domain, and ...
0
votes
0answers
149 views

Copy Data over network using Robocopy - Error 3

I am trying to copy data over a network from one drive mapps as I: to another mapped as H: on my computer. I tried to run the following : Robocopy I:\ H:\ /MIR /Z However I am getting the ...
1
vote
1answer
239 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, ...
0
votes
1answer
27 views

File copy, based on size

My access .mde file gradually grows in size, starting at say 50Mb. I want to write a batch file that will copy and overwrite the file (with a clean version), when it grows beyond 10% (say 55Mb). ...
33
votes
2answers
38k views

What does robocopy mean by tweaked, lonely and extra?

The robocopy documentation for the option /it is simply Includes "tweaked" files. What does tweaked mean? The robocopy documentation for the option /xl is simply Excludes "lonely" files and ...
0
votes
0answers
40 views

Is there a way to copy Userprofiles with Robocopy and keeping the junctions symlinks?

In the Internet you read a lot of Tips how to copy your userprofile with robocopy safely from Recoveryconsole. The usually recomend robocopy source target /xj..... The problem with the /xj switch ...
0
votes
0answers
20 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
2answers
921 views

copy works where xcopy and robocopy does not work

Network admin allowed me to read-access only 1 file from a subfolder of a shared folder on a server and I don't have permissions to even view upper level folders, but when I open that folder I can see ...
0
votes
1answer
780 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 ...
0
votes
2answers
204 views

How does Robocopy determine if a file is “changed”

I'm lookin here for detailed info about how the algorithem of Robocopy determines whether a file has changed or not. If i use for example the /mir paramter Robocopy must determine which files are ...
0
votes
0answers
60 views

Robocopy Isn't Syncing the Read-only Attribute

I use Robocopy as a backup solution. One thing I noticed is that if a file gets backed up and then I decide to mark the original file as read-only, the next time that file gets backed up, the backup ...
0
votes
1answer
2k views

Can Robocopy ensure file integrity?

I am trying to copy a large file, around 10G size, over Internet using Robocopy, but I am a bit concerned about the file integrity. So can I just trust Robocopy to ensure file integrity or I need to ...
1
vote
1answer
509 views

RoboCopy Log File Analysis

Is it possible to analyse the log text file outputted from RoboCopy and extract the lines which are defined as "New Dir" and "Extra Dir"? I would like the line from the log contain all the details ...
0
votes
1answer
133 views

Robocopy From Folder A - Only differences between Folder A and Folder B, to Folder C?

I have a system setup where 2 folders on separate drives / locations are normally mirrored via DFRS. This works perfectly and I have no issues with this. However, the system that owns these files (a ...
1
vote
0answers
274 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
314 views

Robocopy: copy files preserving folder structure but adding a subfolder

I need to copy a folder which contains subfolders with files to a shared folder on another machine. During that, the script should create a custom subfolder in each destination folder and place files ...
2
votes
1answer
30 views

Trying to pseudo-sync 2 computers - why folders renamed?

Trying to pseudo-sync 2 computers - why folders renamed? Windows 7 - new computer Vista - old computer I create a new folder OldComputerDesktop in C:\Users\joeblow. I execute this: robocopy.EXE ...
1
vote
0answers
34 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). ...
0
votes
1answer
151 views

Sync local files to S3 similar to Robocopy

I am looking for a way to synchronize an entire local folder structure to Amazon S3, similar to how one might synchronize two folders using Robocopy. Whatever solution I come up with needs to be ...
0
votes
2answers
7k views

Robocopy: show skipped files and files with an error while copying

I'm using the following command for copying files while preserving timestamps: robocopy [source] [destination] /E /ZB /COPY:DAT /DCOPY:T /R:1 /W:5 /V /NFL /NDL /NS /NC /NP /log:"[log-path]" /XD ...
-1
votes
1answer
193 views

Batch file to copy files from server to desktop according to date

I will explain what I´m trying to get up and runing. I have a folder on the server containing several subfolders and zip archives in those folders. The string of the server is like: ...
4
votes
2answers
15k views

How to copy only new files AND only those that are modified after a certain date?

I would like to copy files from one drive to another, but I only want to copy source files that are newer than the destination file. BUT, I also want to only copy source files that have been changed ...
0
votes
0answers
31 views

Copying directories and files with the same stem using Robocopy

I'm using Robocopy as a TFS task in order to deploy some files. Basically, the behaviour that I want is as follows: I have a directory \\MyDir containing: MyFile1 MyFile2 MyFile3 TestFile1 MyDir1 ...
0
votes
1answer
1k views

robocopy ERROR 1314 (0x00000522) on Windows 7 Home Premium

I'm using a robocopy script with the switches /COPYALL and /B on my Windows 7 Home Premium PC to backup files to a NAS and I'm getting the error message: ERROR 1314 (0x00000522) Copying NTFS ...
1
vote
3answers
591 views

robocopy /mir changes destination folder name-how to prevent that

When I run a robocopy batch file that reads: robocopy "C:\Users\mgo\Documents" "E:\Documents backup on the UltraBay drive" /mir the destination folder gets renamed to "E:\My documents" WHY? How to ...
0
votes
1answer
77 views

Robocopy with 300,000+ files

We have a network appliance for our shared storage. We have a fax application that dumps faxes into a single, incoming, directory. We want to start archiving files older than X days. Currently, there ...