Skip to main content

Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
8 views

Changing a Backup using xcopy to one using robocopy in Win 11

In a Windows 11 Pro and Office 21 Pro environment on a Lenovo 13th Gen, Intel i7-55U, 16GB, 64 bit, Notebook, are there any pitfalls in an incremental copy of Dir/files from external drive F to ...
0 votes
2 answers
409 views

Robocopy with Task scheduler in invisible mode for KIOSK mode or alternative

Computer Setup: Computer in KIOSK mode through Shelllauncher on Windows 10 LTSC. Problem trying to solve: I am looking to move local files on network drive. Solution I found which have some gaps: ...
2 votes
0 answers
73 views

The same robocopy command is extremely slow on one computer and very fast on the other

I am facing the problem that the same robocopy command has totally different execution times on two different computers. The source is a Windows Server 2016 Standard. There is a directory with approx. ...
3 votes
2 answers
4k views

Robocopy will not copy files involving any external drives

I am attempting to back up data onto some external hard drives as a part of my job, the data sets can be over 100GB in size with specific file structure so using robocopy is a must. When I run this ...
4 votes
3 answers
14k 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 ...
4 votes
1 answer
6k views

Copying encrypted files to a non-encrypted folder using robocopy

If I use robocopy to copy encrypted files to a shared folder that does not support encryption, it fails with a The specified file could not be encrypted. This happens with or without the /EFSRAW ...
1 vote
2 answers
4k views

Deleting Files Older than 30 Days with Robocopy

I want to delete files older than 30 days via Robocopy. Robocopy C:\EmptyDir C:\FullDir /mir /MT /R:0 /W:0
0 votes
1 answer
22 views

Google Drive Desktop wasn't moving file, it's moved the file to trash then reuploading when moved by robocopy

So, I'm applying this 3-2-1 backup rule. Folder form ssd-sync is synced to vhd-sync through robocopy, here is the argument command. robocopy D:\ssd-sync E:\vhd-sync /LOG+:D:\ssd-sync\robocopy-...
3 votes
1 answer
6k views

Robocopy copying files from source to destination in backup mode and with file security permissions intact

I need to use Robocopy to mirror files and folders from one shared location to another, in restartable backup mode with security permissions. My current command is: robocopy \\sourceServer\src \\...
1 vote
1 answer
5k views

Hidden folder in Robocopy

I'm trying to backup a hard drive with two partitions on it to another drive with only one partition using Robocopy. I am running my commands in PowerShell. The source drive is a USB2.0 drive and the ...
2 votes
1 answer
6k views

Deleting all files from source directory after robocopy, but retaining those that cause errors

I plan to use robocopy to move files and folders from a directory on a server to a directory on a hard drive, using the following command, robocopy [source] [destination] /e /move /xo In the event of ...
7 votes
0 answers
5k views

Robocopy loops/nests "Application Data" 29 times when copying "Application Data" folder on Windows 10

My goal here is to be able to back up my entire computer by using robocopy. My robocopy script keeps getting stuck here as you can see with the Application Data. C:\Documents and Settings\All Users\...
-2 votes
1 answer
39 views

Why robocopy does not copy some files perfectly?

Here, NTUSER.DAT is different between the 2 different files. As if they're not overriden as they're supposed to. The statement I use is this robocopy "D:\Users\TeguhProg" "C:\Users\...
1 vote
1 answer
5k views

Compare two directories to check which files are missing on the destination path with Robocopy?

I have two directories with the same name and same sub-folder names. I am running this command: ROBOCOPY “Source 1” “Source 2” *.* /L /NJH /NJS /NP /NS /log:reconcile.txt But it shows me new files ...
1 vote
1 answer
4k 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) --...
0 votes
1 answer
35 views

robocopy XD exclude does not seem to work sometimes

For example: robocopy c:\folder d:\folder /MIR /ZB /FFT /MT:32 /R:10 /W:5 /NP /XD cache temp /sl /xj I can clearly see it copying folders with "cache" and "temp" in it. (ie. c:\...
0 votes
0 answers
32 views

How to make robocopy overwrite files?

I cannot make robocopy overwrite files. I need to get copy speed stats on one big file but the file to copy is skipped once already copied : PS C:\> ls ~/Downloads/19041.1.191206-1406....
2 votes
1 answer
5k views

Robocopy: how to copy all files in folder newer than a specific date (including older files)

There is this option in Robocopy: /maxage: Specifies the maximum file age (to exclude files older than N days or date). In my case, i want to copy all data put into a new folder being created ...
3 votes
1 answer
540 views

How can all files on my drive suddenly have modified timestamps set to 1 hour newer than a week ago?

I regularly back up most of my files using Robocopy using the mirror function. I haven't noticed anything odd in the past days, since I most frequently backup to another SSD. But to my horror, when ...
3 votes
2 answers
5k views

Robocopy - Is there anyway to copy upper & lower case file/folder renames?

Is there a command-line option or any way to get Robocopy to detect case changes/renames in files or folders on Windows? For example, If I rename source file 'example.txt' to 'Example.txt', Robocopy ...
0 votes
1 answer
102 views

robocopy recursive - trying to copy particular files from source to destination

I have a folder structure, let's call it C:\source, and beneath it are various folders. In those folders are a variety of files. I want robocopy to copy all .DOC files in the entire source tree to a ...
2 votes
1 answer
6k 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 votes
2 answers
175 views

Add confirmation after executing ROBOCOPY command

I have started to use ROBOCOPY command a lot. I use ROBOCOPY source destination /MIR. Is there any way to add confirmation, "y/n" after the command is executed, but not actually ran. So I ...
0 votes
1 answer
5k 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). It 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 BASEFILES (F:...
1 vote
4 answers
10k 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 ...
0 votes
0 answers
69 views

Can I use Robocopy /move yet still preserve creation and modified timestamps of all directories and subdirectories?

I am trying to move all files and directories and subdirectories including empty ones while preserving both creation and modified timestamps. I tried robocopy but it seems no matter what parameter I ...
0 votes
0 answers
28 views

Rotate destination folder with Robocopy

I use this command Robocopy D:\DIR1 E:\DIR2 /MIR to keep the contents of two folders synchronized: How do I keep 5 separate copies of the target folder, while deleting the sixth-oldest one?
0 votes
1 answer
5k views

How to copy Folder directory including Root volume folder on Windows?

I would like to copy Recursively the full C:\Test Folder with all subdirectories including the Test folder and the folders permisions. I tried using the following commands but it only copies the files:...
2 votes
2 answers
8k 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\...
0 votes
0 answers
66 views

Robocopy /Purge /Move - at what point/how will destination folders/files be deleted?

I have read both At what point does Robocopy overwrite a file? and At what point does Robocopy overwrite a file?, and neither seem to address my question or I'm totally clueless. Example(s): Parent-...
0 votes
0 answers
26 views

Robocopy /MOVE, directory\tree not recreated, Win-11\Home

The line below previously worked with Win-10\Home; dir\tree remained intact. robocopy D:\ A:\Bak_Up /E /ZB /dcopy:dat /LOG:A:\Bak_Up.log /TEE By comparison, using Win-11\Home from the below .bat, ...
0 votes
1 answer
113 views

Robocopy from corrupted SD Card hangs on some files despite /R:0 /W:0. Manually adding each to /XF list and reruning is too slow. How can I automate?

I'm trying to recover thousands of photos and videos from a corrupted SD Card. I've tried to recover the SD Card with chkdsk /F /R /X . Here is the relevant output: "Corruption was found while ...
0 votes
3 answers
3k views

Why does copy work 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 ...
2 votes
2 answers
205 views

Count matches from robocopy output in powershell

I have the following robocopy command line: robocopy $drv "B:\Blending Produções - Backup\Blending Produções - Tyrone Hirt - BC" /e /NJH /NDL /NC /BYTES /MT:4 /l /xd /A-:SH $IgnorarPastas /...
27 votes
4 answers
159k views

Robocopy - Copy directory into another directory

I can't believe that I am having trouble in copying a directory into another directory via the windows command line. What I want to do is simple -: Lets say I have a directory -: C:\test and I ...
0 votes
1 answer
70 views

Robocopy copy: report: Dirs, Files, and Bytes are all 0 for Extras, but Times is 0:00:01. Why?

I copied a few files with robocopy on Windows 10. In the final report, Dirs, Files, and Bytes are all 0 for Extras, however Times is 0:00:01 for Extras. How is that possible? Total ...
2 votes
1 answer
106 views

How to have robocopy search subdirectories inside of source folder for the files to move?

I am using a recording program to record clips of games, and the program I am using records full sessions with the full session recording files being saved MKV files in my F:\Videos\Clips folder. ...
3 votes
0 answers
272 views

Why am I seeing low transfer speed with Robocopy between two external SSDs? [duplicate]

I'm using Robocopy within a PowerShell script to backup my main SSD to another SSD, but I'm having problems with the file transfer speed. While in Windows Explorer I have writing speeds of 300~400 MB/...
46 votes
15 answers
161k 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 ...
1 vote
1 answer
3k views

Robocopy: ERROR 87 (0x00000057) Time-Stamping Destination Directory

I'm using robocopy to copy files from a CD drive to a SATA drive in USB-to-SATA enclosure. This is the command that I'm using: FOR /F "tokens=6" %%a IN ('vol e:') DO SET var=%%a md k:\%var% ...
1 vote
1 answer
2k views

Robocopy behaviour (user profile folder) [duplicate]

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 ...
1 vote
2 answers
6k views

How to overwrite files using robocopy regardless of their last change date

I want my PowerShell script to take a backup of $destination directory, in $backup directory, but the newly created backup directory should be named $destination-{yyyy-dd-mm} where 'yyyy-dd-mm' is ...
0 votes
2 answers
576 views

Copy Program Files folder to another volume

I want to copy C:\Program Files to D:\Programs and place a junction instead. If I run robocopy "C:\Program Files" D:\Programs /e /copyall /sj /secfix from WRE or any other external ...
6 votes
2 answers
13k 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
1 answer
3k views

Excluding multiple directories not working as expected with robocopy

I'm running the command: robocopy /E /XJD E: D: /XD 'E:\$RECYCLE.BIN\' 'E:\System Volume Information\' Which runs for a while but then gets stuck at: 2022/05/21 21:39:04 ERROR 5 (0x00000005) Copying ...
0 votes
1 answer
297 views

Powershell script with infinite loop and sleep - good or bad? [closed]

So I have been trying to run robocopy in silent mode with task scheduler, however the powershell or bat script would always pop up whenever a new instance is launched with task scheduler. I found a ...
0 votes
1 answer
428 views

ROBOCOPY how to exclude existing files by name only

Here (Does Robocopy SKIP copying existing files by default?) it says ROBOCOPY will by default overwrite files if they differ by name or last write date or size. However I am looking for a ROBOCOPY ...
0 votes
1 answer
144 views

Preserving Quick Access Pins and Libraries with Robocopy

So I've had an external drive that I kept plugged into my laptop that later started having connection issues. I decided to use Robocopy to transfer the files over to a new drive with (effectively) the ...
0 votes
0 answers
67 views

Robocopy extremely low performance copying from Synlogy SMB

I want to occasionally backup a media library which is located on my NAS to another drive (6TB WD RED HDD; produced in 2019). The drive is located in my main PC and connected through SATA. The NAS and ...
1 vote
1 answer
510 views

Does Robocopy's /ZB option switch modes on a per file or per transfer basis?

Robocopy's command guide describes /zb as an option that "Copies files in restartable mode. If file access is denied, switches to backup mode." However, this is somewhat ambiguous. When ...

1
2 3 4 5
11