Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
15 views

Robocopy issues with symbolic links and output log file

I'm trying to robocopy these folders for a Windows 10 system drive I attached externally): The full User's folder The full Windows folder I know more or less how to do it, but my doubts are these: ...
0
votes
2answers
33 views

Robocopy move old files instead of override

I'm really new to robocopy and can't find if my idea can be realised. I want to make a backup folder let's say destination "backup". But every time robocopy finds a file different from the ...
0
votes
0answers
15 views

How to backup and compare system folders with robocopy?

I've backed up the Windows folder from a Windows 10 boot drive with robocopy F:\Windows E:\roboRubi\Windowsz /mir Both source and target drives are attached to internal SATA ports. None of the two ...
1
vote
1answer
20 views

How does Robocopy handle file system links (symbolic links, hard links and junctions)?

Is it safe to delete a Robocopy backup? I have read that some people accidentally deleted files outside of the backup because it contained links/junctions. Can I prevent this?
0
votes
1answer
26 views

What are junction points for files (instead of directories)?

According to https://ss64.com/nt/mklink.html, junctions cannot link to files. Also, when I try this nevertheless with mklink /j junction-file target\foo.txt, the command will succeed, but the junction ...
0
votes
0answers
32 views

How do I properly sync data between two Windows 10 systems on the same LAN utilizing Robocopy, a .bat file, and Task Scheduler?

I've read a number of posts regarding the use of robocopy to sync data between two Windows systems. I tried various configurations, and the settings I currently have in place are what seemed to work ...
0
votes
0answers
3 views

How to prevent robocopy from appending to the same log file while in /MONintoring mode?

These are my options: Options : *.* /V /X /S /DCOPY:DA /COPY:DAT /MON:1 /MOT:3 /R:1000000 /W:30 /LOG:robocopy.log I experience that if you monitor the source, the log file is being kept open, which ...
0
votes
1answer
48 views

What is the closest thing to a logical disk image with Robocopy or similar tool?

I have an old 2 TB drive that seems to be on the way to electronics heaven. It's not make scary noises, but Windows 10 failed to mount it until it ran a multi-day checkdisk. Besides that, it's close ...
0
votes
1answer
18 views

Does using command line robocopy effect drive life?

I use the cmd command "robocopy" to back up a folder on an ssd to an internal backup drive though a bat file. The command I use: robocopy "X:\Source Folder" "P:\Backups\Source ...
0
votes
0answers
36 views

Limit how many files are going to be copied

I want to copy two (out of 10, maybe more) files from my source folder to my destination folder. I need to copy only two and they have to be the newest (by creation date) files, I thought I could ...
1
vote
1answer
94 views

robocopy only copy recent files, not recent folders

I had to create a copy of the file structure from a fileshare using robocopy C:\something D:\something /E /EF *.* I now just have all the folders, no files. Now, I just want to robocopy files that ...
0
votes
1answer
92 views

Robocopy copied Delta files to another location

robocopy is a great tool for making full/incremental copies and I like to use it for Backups. One thing, I still haven´t figured out: How to treat the Delta files specifically Situation: Source A is ...
1
vote
2answers
48 views

rsync-like copy command on windows

tl;dr I'm looking for a near-exact replacement for rsync --recursive --update on vanilla Windows. details What is a command, in Windows, that works like: input: a filesystem pattern (restricted to ...
0
votes
1answer
78 views

Trying to parse a string that I generate in a batch file into a few values of an XML file

I'm trying to create V2 of my little batch file. I only know batch , so I'd prefer to do this if possible instead of powershell but if I have to, I have to. The app just copies five files that are the ...
0
votes
0answers
34 views

Reducing Command Priority: Robocopy Slows System

How can I prevent Robocopy from slowing other processes to a near standstill? I have a Windows 10 batch file running Robocopy, once per hour, to mirror one drive and to copy changed files on another ...
0
votes
0answers
15 views

What causes Robocopy to fail copying a file at 33.8%?

I was copying 50 files from my Plex Server to an external hard drive plugged to my Gaming PC via my Local Network and 1 file failed to copy at 33.8 % after a couple of tries Robocopy ignored it at 33....
0
votes
0answers
35 views

Robocopy started hidden with vbs script not showing exit codes in Task Scheduler

Trying solutions here and here works fine, except in Task Scheduler Last run result always shows as The operation completed successfully. (0x0) instead of 0x2 or 0x3 without vbs: Is it possible to ...
2
votes
2answers
349 views

robocopy: copy only newer files whose older version are already in the destination folder (updating files, not folder)

To update the files in the destination folder, I'd like to copy only the newer files whose older version are already in the destination folder. I don't want to copy any files that are in the source ...
2
votes
1answer
41 views

Copy files except when destination modified in last x days

I think what I am trying to do is simple, but I can't get the robocopy settings right, as I am trying to copy files from src to dest, over-writing files in dest if they already exist, except if ...
0
votes
0answers
8 views

How to fix a stuck robocopy reading data but not writing any? [duplicate]

I am trying to copy all the files off a failing/unreliable hard drive(has read errors) using robocopy using this command : robocopy /E /XO /R:1 /W:1 /V /MT:128 E:\ L:\ /Z /xd E:\System Volume ...
0
votes
0answers
54 views

Using ROBOCOPY and appending log entries

I have been trying to use batch commands to backup my 29k image library to OneDrive. I started with COPY, then XCOPY and now ROBOCOPY. ROBOCOPY seemed to do everything I want (copy updated files, ...
0
votes
1answer
26 views

Applying one command to list in text file

Assuming I have a list of PCs in a text file, how would I go about running the same command on each pc in the list? For example, say my list is this: ln1 ln2 ln3 ln4 And my command is this: ...
2
votes
1answer
65 views

robocopy ignores modified files

I'm cloning a directory with robocopy. My intention is cloning everything, purging extra files in the destination and also overwriting files that are the same according to size and timestamp (/IS ...
0
votes
0answers
81 views

WIll Robocopy copy and replace files if they become corrupted?

I have Robocopy set up to copy files to a network storage location from folders on a Hard Disk. In the event of some sort of issue with my HDD, where the files become corrupted, will Robocopy copy ...
1
vote
0answers
46 views

Modify Powershell script to to copy from multiple sources to a single destination using Robocopy

want to write a script (preferably in PowerShell) to copy (robocopy) files from multiple directories to a single destination. I am able to do this for a single source directory. But need help to ...
0
votes
0answers
79 views

ROBOCOPY to mirror directory structure for a specific file

I'm trying to move some files around using ROBOCOPY to preserve the folder structure I've created. Suppose the file "unique_file_name.txt" is located in "C:\Source\Client 1" If I ...
1
vote
1answer
917 views

How rename files copied via Robocopy if it exist but with different modify date

I'm using Robocopy to copy files from a folder to another, i think my code will overwrite the file if it was existing on the destination folder and the timestamp was different, what im trying to do is ...
0
votes
1answer
42 views

How to schedule a backup for only the new added files?

I'm a Windows user and wondering: how can I do a backup for the files on a specific folder if the files are not older than x days? Or to backup only the newly added/modified files without doing a full ...
0
votes
1answer
86 views

Hows to force robocopy to produce less verbose output

I have a short cmd file I run every day to back up any new or updated files/folders from sys1 onto sys2. The line within that file that I use right now for the backup is: start /w robocopy \sys1\data\...
0
votes
0answers
33 views

Windows10 cmd xcopy made a “rogue copy”?

I recently reinstalled Windows due to some junction failure. I tried to make a backup of C:\ to a different drive. I did it through xcopy I think, or robocopy. Nevertheless, the backup completed and I ...
1
vote
1answer
87 views

A directory with same name already exists in this location

I am trying to create a folder with name, let's say, phantomdir but I am getting a dialogue that says, translated, "A directory with same name 'phantomdir' already exists in this location. Do you ...
1
vote
1answer
269 views

Batch file continues to run command after Task Scheduler stops it

I have a scheduled task running at 00:00 that opens a .bat file containing a robocopy command, with the task set to stop after 4 minutes, and to force stop if not ending when requested. It seems the ...
0
votes
0answers
52 views

Can robocopy or an equivalent skip cloudprovider service (OneDrive) files which have not been downloaded?

I have a robocopy script which copies my C:\Usere\%Username% directory to a backup USB drive. I use Onedrive and I have found that when I use the script OneDrive downloads every file so I can copy it -...
1
vote
1answer
71 views

Robocopy deletes skipped files in destination when mirroring

When attempting to mirror two folders using Robocopy, the option /MIR causes files in the destination to be deleted when the source files are in use. Specifically this happens when backing up my ...
0
votes
2answers
262 views

Get-ChildItem in Robocopy not working as expected

I'm looking to find all .jpg files in D:\ZZZ_Phone_test and its subdirectories and then have Robocopy to copy those to D:\ZZZ_Phone_test\1\1\BackUp\ (which needs to be excluded because it is within ...
1
vote
1answer
181 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 ...
1
vote
0answers
115 views

Copying large file with robocopy during remote-desktop session failed with ERROR_OPERATION_ABORTED

Today, it was necessary for me to copy a rather large file from one PC A to another PC B. I'm using Windows on both PCs, so that I thought robocopy would be the tool of my choice. The file was about ...
0
votes
0answers
56 views

Windows 2012 copy millions of small files

I have to copy about ~12 millions of small files (less than ~100kb e/o) from one VM with W2012r2 to another VM with W2016, using a dedicated gigabit NIC. I need to do an initial copy of all these ...
14
votes
2answers
3k views

What does “robocopy /NOOFFLOAD” do?

The windows tool robocopy has a command line switch /NOOFFLOAD. What does this switch actually do, and under what circumstances would I use it? The documentation for the switch says /NOOFFLOAD :: copy ...
0
votes
0answers
20 views

Robocopy /MIR always deletes target file first, and the copies source file again

I Have a network drive mapped with WebDAV to a sharepoint online site. Z: \name.sharepoint.com@SSL\DavWWWRoot\Sites\name Works well, I can navigate the Drive letter mapping just fine. I want to ...
1
vote
0answers
420 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\...
4
votes
1answer
81 views

Robocopy Long File Name

Windows 10 run in our users' company PCs, long path name errors appears to them while trying to transfer files from the PCs to the windows server 2016 Users do not want to Flatten the folder ...
0
votes
2answers
338 views

XCOPY only files from a parent folder and from all its subforlders to a new folder in Windows?

I was searching a lot of times how to copy all the files of different extensions from a folder and all its subfolders to a new folder without copying the folders itself using Batch File. I mean ONLY ...
0
votes
0answers
134 views

Robocopy, large files slow down multiple thread copy

For robocopy, can I have other unused threads move on to another file without waiting for the other threads to finish? I tend to notice that when I am copying files with one larger file, one thread ...
2
votes
1answer
406 views

robocopy batch file is giving Error codes 2 and 3

I have a batch file to get robocopies of rar files from different places it used to work just fine but recently it is giving me error code 2 and 3 but the robocopy is working Fine I didn't even change ...
0
votes
1answer
84 views

Is it possible to skip and send email alert if the Robocopy MIR operation is going to copy more than 100 files

Please help, I need the script if the robocopy is going to MIR more than 100 files it should send alert and stop MIR operation. If it is less that 100 then it can perform the MIR operation.
0
votes
1answer
213 views

Robocopy log file - bad formatting

On: windows-10 Pro x64 and Robocopy.exe 10.0.17763.1 Batch .bat file runs Robocopy to backup my user direrctory on C: to H: C: is SSD formatted HTFS, H: is HD formatted HTFS Command in the batch ...
1
vote
1answer
67 views

What is the correct RoboCopy command for my intended sync job?

I've never used RoboCopy before and I'd like to make sure a particular operation goes smoothly. I've built an OpenMediaVault NAS and I previously copied all my relevant files to it from my Windows 10 ...
1
vote
1answer
70 views

How to use robocopy with exclusions

I am using robocopy to copy folders and files from source to destination. origin_path: folder1 folder2 folder3 file1.txt file2.log file3.png dest_path: folder_important folder1 folder2 this is ...
1
vote
0answers
110 views

What does robocopy /XC actually do?

The robocopy documentation from Microsoft states that the /xc flag/switch means robocopy "excludes changed files". But what does that really mean? I tried to test this with the following example: I ...

1
2 3 4 5
9