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

learn more… | top users | synonyms

2
votes
0answers
32 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
votes
0answers
12 views

Using Robocopy to Copy from an unencrypted server to an encrypted server

I'm getting ready to do a server migration from a server using Windows Server 2008R2 that in unencrypted to a Windows 2012R2 server encrypted using BitLocker using Robocopy. Are there any potential ...
0
votes
1answer
4k 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 ...
6
votes
3answers
26k 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 ...
4
votes
3answers
12k 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
1answer
3k 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
6k views

How do I use psexec and robocopy together in order to copy a directory over to a remote machine?

Hi I'm trying to form a psexec (or perhaps robocopy?) command which will allow me to use given account credentials to copy a directory over to a remote machine. I'd prefer to use robocopy, but the ...
20
votes
2answers
24k views

Linux equivalent to robocopy?

It's kind of funny, there are a lot of ways in which Linux command line tools are vastly superior to Windows ones, but one thing I have not found an equivalent to is robocopy. Robocopy is way more ...
1
vote
1answer
106 views

RoboCopy unable to copy between a server on a domain to a computer in a workgroup

I have a RoboCopy problem and here is the scenario. My server is running Windows Server Essentials 2012 R2. My laptop is running Windows 10 Technical Preview. The server is running as a domain ...
6
votes
4answers
10k views

How do I hide “Extra File” and “100%” lines from robocopy output?

I have a robocopy script to back up our Kiln repositories that runs nightly, which looks something like this: robocopy "$liveRepoLocation" "$cloneRepoLocation" /MIR /MT /W:3 /R:100 ...
0
votes
1answer
32 views

Robocopy backup via Citrix wrong timestamps

I connect to a Windows 2008R2 via Citrix from a MAC. The task is to backup the HDD to my local HDD which I connected as a network drive z: in Windows. The problem is that on my Mac the files modified ...
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 ...
2
votes
2answers
7k views

robocopy with DCOPY:T does not work

I am using Windows 7. The robocopy switch DCOPY:T can be used (I mean there is no parameter error) in the command robocopy C:\TEST F:\test /E /MIR /COPYALL /DCOPY:T However, folder timestamps are ...
1
vote
1answer
96 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\/" ...
6
votes
2answers
13k views

Robocopy /XD Won't Work With Relative Paths

I am trying to run a robocopy /MOVE command but exclude a couple of sub-directories specified with the /XD flag. robocopy ".\CurrentDir" ".\NewDir" /XD ".\CurrentDir\SubDir1" ".\CurrentDir\SubDir2" ...
2
votes
4answers
10k views

How to optionally copy and rename a file in Windows?

Basically, in an automated batch file, I want to copy and rename a file if the destination file is missing or older. There are several variants, which do not quite work: copy /Y c:\source\a.file ...
0
votes
0answers
47 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
25 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 ...
1
vote
1answer
159 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
0answers
47 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
337 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
28 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
2answers
697 views

Robocopy copying unchanged files to other server

I have a problem with a robocopy script that is supposed to mirror a directory including the NTFS ACL from one server to another server. It seems that even though no files have changed, the complete ...
1
vote
1answer
290 views

Robocopy Log File Meaning of New File, New Dir

I've been learning and using robocopy a lot for the last few weeks. One thing I have not been able to find is good documentation on the terms used in the default log file. There is no header row in ...
1
vote
1answer
92 views

Can robocopy show the console and create a log file?

I'm working with robocopy for the first time and have got most of it figured out and working well except logging. I have experimented a bunch and if I run my job like this: robocopy /xc /xn /xo ...
1
vote
4answers
526 views

Moving a folder across the network

I need to move (not copy then delete, for the sake of file verification) a folder from a network folder to another network folder using Powershell. I have tried Move-Item (where test1 is a folder): ...
0
votes
2answers
68 views

Windows command line copy based on binary file comparison

I'm looking for a utility, built-in or not, that can let me essentially perform a robocopy-like operation but with a binary file comparison instead of date comparison. Essentially, I have a git hook ...
6
votes
6answers
4k views

Robocopy unilog output is gibberish

I tried to get robocopy in Windows 7 to generate a Unicode log, since I have files with Unicode characters. The command I used: robocopy C:\mysource D:\mydest /mir /unilog:backup.log /tee File the ...
0
votes
0answers
26 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
2answers
66 views

Robocopy unable to distinguish destination from source

I am using a robocopy batch file to backup my work. This is the code in my .bat file: @echo off cls echo press any key to continue backup! pause ROBOCOPY "F:\source" "D:\destination" /s /e /xf ...
0
votes
0answers
11 views

How to control speed on Copy Paste [duplicate]

My situation is the speed of syncing files through vpn need to be controlled to 500K. I have couple of scripts running on schedule using powershell, robocopy. The process is basically just a copy and ...
0
votes
2answers
109 views

Replace files smaller than 1KB from backup

I need to use backups to replace corrupted files on a shared folder. All corrupted files are fixed size = 1KB and have the archive flag set. Basically, I'd like to replace files in the destination ...
0
votes
1answer
137 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 ...
5
votes
3answers
3k 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 ...
10
votes
2answers
17k views

What is the benefit of copy over xcopy on the command line?

I know that xcopy has more options however are there any benefits to using copy rather than xcopy?
2
votes
5answers
927 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
1k views

Getting “Invalid Parameter #10” when attempting to copy folder using robocopy

I'm trying to copy a folder on my internal hard drive to my external hard drive using robocopy with the following command: robocopy "source folder" "destination folder" *.* /E /DCOPY:T /COPYALL ...
2
votes
4answers
11k views

Does Robocopy keep a log file by default?

I copied a huge number of files using Robocopy, and received a note at the end that two files failed. I didn't set a switch to save a log file. Is there a log file saved in a default location ...
1
vote
1answer
25 views

Network storage and backup [closed]

I had a MS 2003 server on my home LAN as an AD DC (inc DNS). It's main purpose was to share files (photos, music, family docs etc) and to act as a backup facility for the desktops. laptops on the LAN. ...
0
votes
1answer
86 views

Xcopy or Robocopy Only files that have a certain date on the destination file

I'm trying to restore files that have been encrypted by cryptowall. I have the files copied onto an external drive that I'd like to copy over the destination files on the data drive. I know exactly ...
0
votes
2answers
1k 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 ...
47
votes
8answers
30k 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 ...
-1
votes
2answers
85 views

How to create a USB that copies all photos from PC to which it is connected, using Batch files?

I tried doing this, but it is not working :: variables /min SET odrive=%odrive:~0,2% set backupcmd=xcopy /s /c /d /e /h /i /r /y echo off for /r C:\ %f in (*.jpg) do @copy "%drive%\all\pics" @echo ...
0
votes
1answer
188 views

How to copy a file to a destination only if the source file is newer than any of the destination files?

I'm looking for a way to accomplish this task. I've tried robocopy and writing a batch file, but robocopy doesn't seem to be able to do it (since /MINAGE can't do time--only dates), and writing a ...
0
votes
0answers
81 views

copying files from one server to another windows

I have a script where I login to a windows 7 machine(Let's call it A) using SSH. In my SSH session, I am trying to copy files from a share(Let's call it B) to A. I've used cygwin on machine A for ssh ...
0
votes
1answer
177 views

Run batch as ADMIN & use robocopy

I need to copy from %USERPROFILE%\Desktop to B:\Desktop where B is a mapped network drive. The code inside BAT file is: powercfg -change -standby-timeout-ac 0 robocopy "C:\USER\DESKTOP\" "B:\DESKTOP" ...
1
vote
0answers
27 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 ...
47
votes
2answers
50k 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 ...
2
votes
1answer
3k 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
11k views

How to use Robocopy to copy a folder structure into all (sub)folders located under one directory?

Is there anyway for me to quickly take an empty folder structure I have created on my desktop and copy it to 488 other folders all located on a network drive but in the same folder? My primary ...