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

learn more… | top users | synonyms

0
votes
1answer
60 views

Robocopy errors when running Jenkins script

I've tried to follow other SU links Getting robocopy to return a proper exit code and I've have this step in Jenkins (robocopy d:\vol\CruiseControl.NET\Websitecode\%SITENAME%" ...
-4
votes
1answer
540 views

Robocopy 1326 Error

How to fix Robocopy Error 1326? Unknown username and bad password? I'm trying to back up the files in the workstations without a domain, to put into a file server that is a member of a domain. Any ...
0
votes
1answer
393 views

Robocopy causing network disconnects

PROBLEM: I am trying to copy a large folder (my music) from my Windows 7 machine to a Windows 8 machine via a LAN. Inevitably, once robocopy is run, the state of the network will start fluctuating ...
0
votes
2answers
275 views

Copy all files, skip those already existing, and delete those in destination not in source

I imagine this could be done with Robocopy - I want to copy my music library from its folder on my PC to my mp3 player. I have ~5000 songs, and I'll probably run the copy every time I add an album. ...
2
votes
1answer
102 views

How can I clone a directory structure with symbolic links (in-tact, also duplicated)?

We use Kiln for our source control; and back it up by copying the KilnRepositories folder to another (local) drive while the services are all stopped, and then on to a network drive afterwards (the ...
0
votes
1answer
267 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
0answers
245 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
1answer
4k 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 ...
0
votes
0answers
138 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
2answers
5k 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
0answers
1k 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
95 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 ...
0
votes
0answers
188 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
1answer
643 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
1answer
135 views

Robocopy - how to copy the NEWEST file in catalog?

I want to copy one file that is the newest in whole catalog. How to do it using robocopy? I know /xo and /xn options but it doesn't do what I need.
1
vote
0answers
2k 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 ...
1
vote
3answers
401 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
307 views

Copy my documents without rename in windows 7

All, Occasionally I use xcopy or robocopy to copy my documents folder as a backup. The issue is no matter what I name it, say MD_Backup, Windows always renames it to My Documents. I'd really like it ...
3
votes
2answers
12k 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 ...
2
votes
2answers
1k views

Why does Robocopy ignore the /copy flags?

Robocopy Copy Flags? I just recently made an answer here http://stackoverflow.com/a/15211788/891976 where I suggested using robocopy and its /copy flags, but for some as of yet unknown reason, the ...
2
votes
0answers
719 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
7k 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 ...
1
vote
1answer
202 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
248 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 ...
-2
votes
1answer
557 views

Robocopy, starts, then stops [closed]

Hey I know robocopy is capable of bypassing the whole 260 character path limit in windows, so I was going to use it, but I came to a slight problem. When I launched it, the CMD for it pops up for ...
0
votes
1answer
296 views

robocopy from a shared folder using winrm

My goal is to use winrm to connect to a remote machine and then run a robocopy command on this remote machine that results into copying files from a remote shared drive on the network into this ...
1
vote
1answer
488 views

Scheduled Tasks - Display the script [duplicate]

Possible Duplicate: Why is Windows 7 scheduled task running hidden? I have a couple of Robocopy scripts setup in a scheduled task, but is there a way to actually display the cmd prompt with ...
0
votes
1answer
1k views

robocopy from remote server that requires private/public key authentication

I know that the robocopy command will only work with existing drives, not remote servers, so if I'd like to use the robocopy command to run periodic file backups from a remote server, I have to map ...
5
votes
2answers
5k 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
0answers
132 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
vote
3answers
2k views

Robocopy launches and then hangs/just sits there

I'm setting up an archive process to store old files on an external hard drive. The computer in question is running Windows 7 Pro 32bit. We have a server folder with 150,000+ files in it, most of ...
1
vote
1answer
2k 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 ...
1
vote
0answers
146 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 ...
3
votes
1answer
5k views

Robocopy, how to log only errors?

Will the options /nfl /ndl be enough and not exclude errors too?
0
votes
2answers
845 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 ...
1
vote
1answer
343 views

Robocopy prepends drive letter on filepaths even when drive is specified

robocopy /"C:\Users\john smith\Documents\Visual Studio 2010\Projects\project\checker\bin\Debug\/" /"C:\Users\john smith\project\Assemblies/" checker.dll When I run this through the command line it ...
9
votes
1answer
34k 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 ...
7
votes
3answers
3k views

delete recursive directory created by robocopy when “The file name is too long”

After running robocopy.exe to backup a C:\Users\ folder without using the /xj switch, I ended up with a recursive directory which was too long. For example, if you run dir /b /s you will receive the ...
4
votes
1answer
12k 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
1answer
156 views

Can I prompt a user to save a file using windows explorer?

I'm trying to build a windows batch file that will copy a folder and all its contents from the local user directory into an individually named folder on a shared server. The name of the folder on the ...
1
vote
1answer
4k views

Enable Robocopy logs

I have a robocopy job that is controlled by Windows Task Scheduler to run every 15 minutes to move files from one server to another. According to Windows Task Scheduler, the job is running fine. ...
0
votes
1answer
570 views

RoboCopy Log Files missing whitespace?

So I'm working on a script to use RoboCopy to copy a bunch of files, and log what it's copied. It works reasonably well, except for the logfiles. They tend to look like this: ...
0
votes
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
1answer
288 views

What flags do i use with robocopy on copy with mod date?

I'm on windows 7 and i like to copy a directory from one drive to another. I want it to be as fast as possible and what i need are Modification date plain file (without attributes like permission or ...
2
votes
4answers
7k views

Does Robocopy Keep a Log File by Default?

I copied a huge number of files using Robocopy, and recived 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 ...
4
votes
2answers
7k views

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

I know that xcopy has more options however is there some benefit to using copy rather than xcopy?
1
vote
5answers
709 views

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

Maybe could be hard to explain, but I'll! I'm on Windows 7 Professional, and this is my scenario : Folder "Asd" (C:\) Folder "Asd" (D:\) File 1 File 1 File 2 ...
3
votes
2answers
5k views

How to use Volume Shadows Copy and Robocopy on Win7?

I’d like to backup my system with Robocopy and Powershell, but Robocopy is not able to copy open files. Volume Shadows Copy seems a solution but I can’t find any clear and simple explanation on how to ...
9
votes
9answers
9k 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 ...
0
votes
2answers
1k views

Which file does robocopy copy first?

In my C# application, I am using robocopy for with option /s for copying sub folders also. Suppose I have files & folders from the last month. Which file will it copy first, the latest one or ...