Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
19 views

Robocopy destination folder not specified

I want to make a backup copy of an entire drive to a folder in an external drive but robocopy doesn't "see" the specified destination folder. The idea is to update all the files and add the ...
user avatar
  • 601
0 votes
0 answers
15 views

Network share access denied after STIG/CIS hardening in windows

I have one windows server from where I was running robocopy and it was working. The source was a network share from where I was copying some files to this windows server. After implementing CIS/STIG ...
user avatar
1 vote
1 answer
30 views

Any way to copy only all the files in a folder, without the folders?

Any way to copy only all the files in a folder, without the folders? I tried these to no avail (they copy folders too): ROBOCOPY D:\SAMPLE D:\SAMPLE2 /IF *.* /E ROBOCOPY D:\SAMPLE D:\SAMPLE2 *.* /E ...
user avatar
0 votes
1 answer
28 views

Restore file modification time from backup

Due to some careless copy/zip/unzip operations, all files in a folder and its subfolders had their last-modified time updated. I would like to restore the correct file timestamp from an older backup. ...
user avatar
  • 618
0 votes
0 answers
4 views

How to prevent robocopy /MIR from outputting the "EXTRA File" line in the log?

Similar question has been asked in 2010 and 2012 but the answers don't cover this question. When I use robocopy /MIR, if the destination has a file that's not in the source, it'll be deleted, and a ...
user avatar
  • 121
0 votes
0 answers
58 views

Have I been backing up worthless APPDATA for years?

deep breath Alright, so I just needed to restore some important data stored in a program's user profile. So naturally, I went to one of my backup disks and navigated to the APPDATA dir. The data was ...
user avatar
1 vote
2 answers
95 views

Is there Windows copy command that mimic Unix `cp -r` behavior?

I don't know how to name this behavior vividly, just call it loyalcopy. Two figures will illustrate it clearly. I'd like to issue two commands to copy two filesystem nodes (regardless it is a file ...
user avatar
  • 5,083
0 votes
0 answers
34 views

Purpose of xcopy over robocopy

From what I've found online, robocopy seems to be xcopy with more features; are there any scenarios where someone would want to use xcopy over robocopy?
user avatar
0 votes
0 answers
74 views

Robocopy only copy folders modified in last 7 days. working on C drive, not on server?

I am trying to create a robocopy program which runs every Sunday and pulls in the last 7 days of folders (and its sub-folders). This is because the folder stores years worth of data so I only want to ...
user avatar
0 votes
1 answer
20 views

Can Robocopy sync Files in a Directory between two pcs, Modifications of files on both pcs, but want to keep newest modifications/files synced

So I am trying to keep a Minecraft Game Save Folder that is located in both PC A and PC B in sync. PC A and PC B will both access/modify the contents of the files in this folder periodically. I would ...
user avatar
0 votes
1 answer
193 views

Robocopy error: ERROR 5 (0x00000005) Changing File Attributes

Ugh. I've been using this command for years and am now getting this error: robocopy m:\ e:\ /MIR /MT /R:1 /W:10 /XD m:$RECYCLE.BIN m:\temp\Backup m:.TemporaryItems "m:\System Volume Information&...
user avatar
0 votes
1 answer
233 views

How can I MERGE multiple folders and Files to a new single folder?

I Have A folder named "SCENERY" on Drive F (F:\SCENERY) SCENERY contains several folders: A,B,C... etc I would like to MERGE the contents of A,B,C... etc to another folder on Drive F named &...
user avatar
  • 1
0 votes
0 answers
66 views

Should my PC go to sleep while robocopying?

I noticed my PC goes to sleep while robocopying, so I' having to set the timer to a long time in Settings > Power&Sleep > Sleep. I checked with the powercfg -requests command it it seems to ...
user avatar
0 votes
1 answer
65 views

Why does Robocopy skip a changed file if file length and file date are the same?

I've been using Robocopy for a while to create a (quick) backup of my disks. The exact command I use is robocopy /MIR /R:0 sourcedrive:\ targetdrive:\sourcedrivename . This should create an exact ...
user avatar
  • 11
0 votes
0 answers
29 views

Robocopy Total and Skipped not equal

I'm trying to copy the contents from one folder to the other. robocopy 'D:\dir' 'E:\dir' /COPY:DAT /DCOPY:DAT /FFT /MT:8 /R:2 /W:5 /XJD /E /LOG+:robocopy.log I've already copied most (if not all) of ...
user avatar
0 votes
0 answers
49 views

robocopy bit by bit comparison [duplicate]

I used robocopy to compare 2 directories recursively: robocopy source target /e /l It worked great, but it was too quick (less than 1 minute to compare 50 GB of data). I want to do a "bit by bit&...
user avatar
  • 2,398
1 vote
1 answer
120 views

Robocopy, what's the total time to run the copy?

Robocopy shows what seems to be the time it took to do the copy...but it shows two, which of the two is the right one?
user avatar
1 vote
0 answers
17 views

Why does Windows Explorer change the 'Folder Modify Time' when first accessing a folder after a robocopy?

I am attempting to use Robocopy to mirror a directory structure (/e) and keep created/modified/accessed times. This should be fairly simple with '/copy:DAT /dcopy:DAT' and appears to preserve the ...
user avatar
  • 721
1 vote
0 answers
86 views

Robocopy behaviour (user profile folder)

I'm copying with robocopy the folder C:\users to D:\Backups with the following command: robocopy "C:\users" "D:\Backups" /e /b /copyall /MT:32 /r:0 /w:0 Instead of copying the ...
user avatar
  • 33
0 votes
2 answers
145 views

Robocopy created hidden directory at destination

I can't see the directory "Backup" in Windows Explorer, although I can navigate to it. The same is true for PowerShell. When I go to the root of the directory Dad and type ls I don't see it ...
user avatar
0 votes
0 answers
15 views

Can I have robocopy delete absent files?

I'm setting up a drive to backup my data. I easily copied over the files using robocopy. But now I'm thinking about how to manage this when I come back in a month to update my backup. Sure I can ...
user avatar
0 votes
0 answers
80 views

Is it possible for robocopy to always create destination structure if it's missing in monitor mode?

Setup: Several measurement devices are wired to a local computer. A python application runs on this computer to relay commands to the measurement devices. Measurement devices produce and store ...
user avatar
  • 1
0 votes
1 answer
64 views

Robocopy occasionally "forgets" to copy files

I use robocopy to copy modified files between my development machine and a server. Source machine is Windows 10. Target machine is Windows Server 2016 Standard. This is the command and parameters I ...
user avatar
  • 101
1 vote
1 answer
40 views

does robocopy kill files while mirroring if read error?

my params is /mir /copyall /dcopy:t /z /v /tee /eta /unilog+ /mt:32 /r:3 /w:30 for example, some copying finishes ok so, is read error "equal" no-file? will robocopy delete file at ...
user avatar
  • 11
1 vote
0 answers
129 views

Robocopy Error 53 when not logged in. When logged in, Robocopy runs successfully

We run a nightly scheduled task that copies files from a local drive to a network share. When I'm remoted in to this machine using any account, Robocopy runs fine. When I'm not logged in, Robocopy ...
user avatar
0 votes
1 answer
102 views

Using Robocopy for incremental backup to OneDrive connected as network share

I have OneDrive set up as a network share rather than syncing the local OneDrive folder. I'm trying to use robocopy on Windows 10 in a batch script which will run as a daily scheduled task to "...
user avatar
  • 3
0 votes
1 answer
171 views

Why does robocopy fail this folder?

I have this weird folder in my windows 10 system drive, this doesn't seem to be a junction point so I don't know what it is, please see picture. I am trying to copy it with robocopy from an admin CLI ...
user avatar
0 votes
0 answers
49 views

Is there any way to disallow Robocopy to download files from OneDrive to a local backup?

I hope you can help me. I currently use Robocopy to back up my OneDrive files to a local hard drive with the following command: robocopy Location1 Location2 /MIR /W:0 /R:1 /REG. It works great. ...
user avatar
0 votes
2 answers
239 views

Robocopy issues with cloud files

I’d like Robocopy to copy all useful data from a Windows system drive, but, for some reason, robocopy doesn't know how to tell apart certain OneDrive files (I guess Google drive and iCloud may have ...
user avatar
0 votes
1 answer
31 views

Robocopy command isn't backing up, is this command valid?

I'm trying to use Robocopy to incrementally back-up my project every 15 minutes, only if there are changes. I'm using Windows Task Scheduler to start the .bat file at start-up, and because I don't ...
user avatar
0 votes
0 answers
108 views

Robocopy failing some Recycle Bin, “.exe” and Offline files

I like Robocopy so I’m testing it. So I created one of the most knotty backups I could think of, a backup a whole Windows 10 system drive. I used this command: ROBOCOPY C:\ F:\ /MIR /SL /SJ /B /NFL /...
user avatar
0 votes
1 answer
114 views

robocopy a specific directory and its contents but not the files on the same directory-depth

I have a folder structure like this: R:\TOPFOLDER ├───Folder_1 │ │ other File.txt │ │ │ ├───!Downloads │ └───other_Folder ├───Folder_2 │ │ other File.txt │ │ │ ├───!Downloads │ ...
user avatar
  • 94
0 votes
2 answers
89 views

Can I recover Onedrive files from an old hard drive?

I need to recover some files from an old hard drive. They are in the Onedrive folder and seem to be offline (there’s a cross icon on them and show the O attribute when I do “attrib filename” with any ...
user avatar
0 votes
0 answers
23 views

Is there a way to tell robocopy to report in its log how many files it has overwritten?

I'm using Robocopy with the /MIR option to backup some directories periodically, and I would like it to output a log in which the summary can tell me how many files were overwritten (not just copied ...
user avatar
  • 1
0 votes
0 answers
32 views

Any Robocopy GUI that can run from CMD in WinRE?

Please correct me if I'm wrong, I wish I were: I'd like to use Robocopy from Command Prompt in the Windows 10 Recovery Environment (by booting to the WinRE and opening Command Prompt). I learnt there'...
user avatar
0 votes
1 answer
739 views

Use robocopy to exclude directories containing a file

I'm using robocopy in a batch script to back up all of my files onto an external drive, but I want to exclude any folders that contain (directly) a file called ".nosync", so I can avoid ...
user avatar
0 votes
0 answers
24 views

Robocopy get freeze often while copying

We have a windows 10 desktop that's running a couple of robocopy jobs for some reason, it gets freeze at random points in CMD. When the CMD freezes, it freezes at different spots in the backup job but ...
user avatar
0 votes
0 answers
22 views

How to improve remote backup

I need to backup a large file (>20GB) onto a shared folder through a wired LAN. I have used ROBOCOPY with no buffer (/J) and multithreaded (/MT:64). Nevertheless task manager measures no more than ...
user avatar
0 votes
1 answer
419 views

ROBOCOPY command gives me error if owner is set to group instead of user

I want to copy folder structure with permissions using this command: ROBOCOPY "source" "destination" /E /copy:DATSO /NP /MT. It works only if source folder is owned by the user ...
user avatar
  • 15
0 votes
0 answers
133 views

Use robocopy to copy without attributes for files and directories

I'm trying to run robocopy to copy data but not copying attributes (timestamps are ok). My first thought was to run with these switches: /copy:dt /dcopy:t The way I interpret the documentation, those ...
user avatar
2 votes
0 answers
185 views

Why does calculating folder sizes with Robocopy.exe give me different results compared to Get-ChildItem?

I have this Function that takes a path input, and gives you the size of it. There are 3 different options you can choose from which are: 'GCI' - Get-ChildItem 'DIR' - CMD's DIR command 'ROBO' - ...
user avatar
0 votes
0 answers
48 views

Robocopy reporting wrong file count on log summary

I’m copying a folder with robocopy and it’s copying-over just fine. However, the file count reported at bottom is wrong (see picture) To make sure it copied fine, I opened the log with Word and ...
user avatar
0 votes
1 answer
188 views

Robocopy not working on Win10 machine

I can't get robocopy to work within a simple batch file (my first), as I keep getting ERROR 123 (0x0000007B) [below]; I've searched via google for a remedy, but found no solution, and tried to copy my ...
user avatar
  • 1
1 vote
0 answers
16 views

Robocopy not logging folders

Robocopy is randomly not logging folders in the log. I'm using exactly the same switches but copying the same or different folders. See picture at bottom.. I used: robocopy "F:\folderSample2&...
user avatar
0 votes
0 answers
62 views

Any way for Robocopy to copy hard links as links instead of as the link targets? [duplicate]

I tried to copy a folder that includes hard links, file symlinks, directory symlinks, etc. I successfully copied the file symlinks and directory symlinks as links instead of as the link targets, but ...
user avatar
0 votes
1 answer
349 views

Is there any way to tell Robocopy NOT to delete an empty folder after it has moved all files from it?

I have a folder that I dump files into which are later moved from there to another folder using Robocopy. After Robocopy empties the folder, it deletes it. How do I stop it from doing this? Edit: Here'...
user avatar
0 votes
1 answer
926 views

What are the best Retries and Wait time switches for Robocopy?

I'm trying to find the best Robocopy commands for each situation I can think of, such as copying a folder that includes the weirdest files (such as the Windows folder), or a Windows User's folder, etc....
user avatar
1 vote
1 answer
1k views

How can I find robocopy failures in the log?

After I use Robocopy to copy a folder, I sometimes get failures in the run log summary at the bottom (please see picture), however, I don’t see how to locate them in the actual list of files in the ...
user avatar
1 vote
1 answer
106 views

Any way to make Robocopy produce "failed" and "mismatched" files for testing purposes?

I'm learning Robocopy and I'd like to find a way to produce a Run summary with Failed and Mismatched files or folders. I guess you cannot produce a Failed result unless you have a hard drive with bad ...
user avatar
1 vote
1 answer
654 views

ROBOCOPY, What is the meaning of "mismatch" and "failed"

Anyone could please clarify what's the meaning of the columns MISMATCH and FAILED in the Run summary?
user avatar

1
2 3 4 5
9