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

learn more… | top users | synonyms

0
votes
1answer
13 views

What happens when you use Robocopy between two remote computers on your WAN?

Some details: I have a local server at one of the branches of the company I work for that has some pretty bad internet. I am using Robocopy to move some big files to the server once then using it ...
0
votes
0answers
25 views

Robocopy: ERROR 5 (0x00000005) Accessing Source Directory \\server\ParentFolder\ChildFolder\ Access is denied

I have the following robocopy command to copy the directory from a folder on the network location to another folder on the same network location: @ECHO OFF for /f %%a in ('wmic os get LocalDateTime ^|...
1
vote
1answer
41 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 ...
0
votes
1answer
27 views

What is fastest for nightly Windows7 local drive to USB external drive backup: ROBOCOPY, XCOPY, or BeyondCompare? [on hold]

I have a batch file that backs up all my work every night. It copies my internal C: an SSD to my primary external USB-3.0 hard disk, and also that primary external hard disk to a secondary external ...
0
votes
2answers
17 views

Robocopy - enable data validation?

I am copying a file using robocopy, however I have noticed that the destination file is always corrupted, is there an option with robocopy I can use to ensure that each chunk is validated during the ...
0
votes
1answer
7k 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 ...
0
votes
1answer
5k 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
1answer
12 views

windows server 2008 r2 - Script on server needs interactive user input

i have a small script running which listens for a specific ip to get online in the network. (for a robocopy job) I have split this into two things: If the client is connected via vpn, ask the user if ...
14
votes
2answers
50k 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 ...
2
votes
4answers
3k views

Looking for a way to copy a file that does not lock the file being copied

I am aggregating together data that is being generated at a bunch of disparate sources, in a mixed environment of various versions of windows (xp/7) and one linux (centos). The data is available via ...
0
votes
2answers
38 views

how to use space within pathname for Window's Robocopy

When my path for robocopy has a space, I surround it with " but get the weird error below... My .bat file contains: rem Backup scans ROBOCOPY "C:\Users\doug\Documents\My Scans\" "B:\BACKUP\My Scans\...
14
votes
4answers
48k 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
46 views

Robocopy transferring more data than available on source

first question on StackExchange, so apologies if there are etiquette breaches! I am using Robocopy to mirror a complete disk drive to an external drive for backup/archive purposes. I used the ...
0
votes
0answers
22 views

robo copy delete files from backup after x days of deletion from source

i want to create a backup of files using robo copy.I want files in backup must be deleted after x days of deletion from source.But it must be avilable in backup for x days.purge /minage:x is deleting ...
0
votes
1answer
33 views

Incremental back from one network location to another network location via ROBOCOPY?

Here is the scenario, SOURCE - //END-PC/Sourcefolder DEST - //FIRST-PC/Destinationfolder Source folder has around 60-70GB of data which are Excel, Word, jpeg, pdf and all sort of work related ...
1
vote
1answer
45 views

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

in reference to this How can I copy files from A to B, only including files that exist in B?. How can i copy files from A to C only including files that exist in B. Folder "A" (C:\) ...
1
vote
1answer
31 views

At what point does Robocopy overwrite a file?

I'm running a .bat containing: robocopy \\server\directory\ .\localdir /MIR This moves a single file from a server to my local directory. It's a large file and will take a while to finish, however ...
2
votes
3answers
16k 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 "...
0
votes
1answer
16 views

robocopy: only list what will be deleted from destination

I want to list what will be deleted from the destination directory. I tried: robocopy U:\ R:\ /L /E /NOCOPY /PURGE
0
votes
0answers
31 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 ...
10
votes
2answers
46k 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 ...
7
votes
6answers
27k 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
20 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
46 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, d:...
0
votes
0answers
16 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
2answers
85 views

Robocopy what is the command to copy a dvd to my Hard Drive excluding a Folder?

I want to copy all the folders, subdirectories and files from a DVD to my hard drive excluding a Subdirectory, using Robocopy, what is the command for this task using this path? Copy all from D:\ ...
34
votes
2answers
125k views

Using robocopy and excluding multiple directories

I'm trying to copy some directories from a server before I restore from backup (my latest backup was corrupt, so I have to use an older one :( ). I'm in the Windows Recovery Environment and have ...
0
votes
0answers
47 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 files/...
3
votes
1answer
61 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 ...
0
votes
1answer
155 views

How to copy a directory on Windows, preserving timestamps of all directories being copied

I want to copy a directory tree while preserving timestamps of any file and directory that is being copied. The source directory is on a data DVD (ISO-9660 filesystem). I am copying to an NTFS ...
1
vote
1answer
2k views

Error when trying to copy over the network using robocopy

C:\Users\Alex.Newton>robocopy /"\centlpf01cz6c\c$\Program Files\ProgramName\/" /" \centlpf01cz6c\Program Files\TestBatch\Test\/" --------------------------------------------------------------------...
0
votes
0answers
51 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
1answer
29 views

About robocopy slient operation result

I want to use robocopy to mirror a one way backup(mirroring) a directory, there are a lots of file list out what it is copying and flushing the screen all the time, so I search on Internet to how to ...
5
votes
3answers
6k views

Can Robocopy monitor files on a time incremenet of less than one minute?

Robocopy has the option to monitor the source directory, and copy over any files that have changes. You can specify how many changes in the directory must occur before copying (/mon n where n is the ...
0
votes
0answers
28 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
23 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 ...
1
vote
0answers
44 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 "~." "~." "desktop....
0
votes
3answers
109 views

How does RoboCopy scan folders?

I have inherited a Transfer job at work that is causing me some issues. We are using RoboCopy to transfer files from location to another location. The script does copy the files fine but is set to ...
0
votes
0answers
29 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 ...
1
vote
1answer
104 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 ...
0
votes
0answers
35 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\ ...
3
votes
1answer
152 views

Use robocopy to mirror source but ignore timestamp

I want to backup a folder to a share on a linux nas with robocopy. I use the commandline robocopy /mir <source> <dest> After a succesfull copy in explorer the timestamps are equal but ...
1
vote
1answer
170 views

Robocopy replace same date file move

I'm using robocopy to move data. I want to achieve this IF Source File data (Newer or Same) move/overwrite data Else skip file I need a switch or a way to just excluded newer not newer or same ...
5
votes
3answers
11k 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 ...
2
votes
0answers
150 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 "$...
6
votes
5answers
38k 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 ...
2
votes
1answer
990 views

robocopy can’t find newly zipped file for copy

I am working with a batch file that is being used to copy files from several remote servers to one central repository using robocopy. I am trying to zip the contents of a folder and then copy it but ...
10
votes
9answers
15k views

Robocopy does not copy the root folder and its time stamp

Robocopy does not copy the root folder and its time stamp - it copies all subdirectories and files (when the appropriate options are set) and there seems to be no option/argument to tell Robocopy you ...
1
vote
1answer
187 views

Write output of Windows Batch file command to text file?

I want to write the output of a robocopy command into a text file to see which files were copied. I tried robocopy drive:\ destination:\ /e /v>log.txt and robocopy drive:\ destination:\ /e /v /l&...
3
votes
1answer
27 views

Robocopied Junction not Showing Icon? Robocopied Symbolic Link also Not Showing Icon?

I'm not familiar with how robocopy handles junctions, symbolic links, and hard links. I tried to copy one of each, and I noticed the icon that shows over a junction and symbolic link does not seem to ...