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

learn more… | top users | synonyms

0
votes
0answers
4 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 ...
8
votes
2answers
37k 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
23k 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
11 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
39 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, ...
0
votes
0answers
13 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
29 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:\ ...
33
votes
2answers
113k 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
18 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 ...
3
votes
1answer
53 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
6k 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
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 ...
0
votes
1answer
40 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
1k 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
22 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
22 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
5k 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
23 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
0answers
23 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
18 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
36 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 "~." "~." ...
0
votes
3answers
67 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
21 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
57 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
28 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
80 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
107 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
9k 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 ...
1
vote
0answers
81 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 ...
5
votes
5answers
33k 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
930 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 ...
11
votes
4answers
42k 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 ...
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
137 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 ...
3
votes
1answer
25 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 ...
0
votes
1answer
38 views

Copy NTFS MetaData: Good Idea or Bad?

I wanted to "migrate" or "mostly clone" a drive to a new one. So, I robocopied a drive, and discovered that the destination has a few missing MetaData files including files from: ...
0
votes
1answer
49 views

Access citrix mapped local drive from scheduled task in Windows

My setup is Linux Mint as host OS, which logs in to a Windows 7 machine using through Citrix. My local (linux) home directory is visible on the Windows system as \\Client\S$ What I want to do is ...
0
votes
0answers
27 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 ...
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 ...
0
votes
1answer
150 views

Backup Files (robocopy) | Error on files in-use

OS: Windows 7 x64 (HomePremium) CMD: >robocopy [source] [destination] -options $ robocopy "C:\Users\itzme\AppData\Roaming\Mozilla\Firefox\Profiles\geo2eich.default" ...
2
votes
3answers
7k 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 ...
0
votes
0answers
105 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 ...
1
vote
0answers
139 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 ...
8
votes
2answers
20k 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" ...
0
votes
3answers
153 views

Robocopy: How to copy assets from multiple locations to a single location and maintain a log

I have multiple folders containing assets (each folder has subfolders containing these assets .mp3, .txt, .png, etc). I want to copy all this assets along with the subfolder to a single ...
0
votes
2answers
1k views

Robocopy: Log names of skipped/Failed files

I am using the following batch file to run my robocopy command: @ECHO OFF for /f %%a in ('wmic os get LocalDateTime ^| findstr ^[0-9]') do (set ts=%%a) robocopy [source] [target] ...
7
votes
2answers
4k views

Windows 7 Delete heavily nested folder structure [duplicate]

I was running a node script that went awry and created a folder structure like so: \myfolder \myfolder \file.txt \myfolder \file.txt \myfolder ...
12
votes
2answers
43k 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
36 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 ...
2
votes
1answer
565 views

How do I create a log of robocopy actions and save in a text file named with today's date?

I am copying some assets from one folder to another using robocopy in command prompt. However, I want to log name of all those copied assets in a .txt file. This .txt file should be saved in the form ...