Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
11 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
67 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
53 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
30 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 ...
0
votes
0answers
33 views

copy all files, meta data, and sub directories [duplicate]

I would like to transfer all files, from one external drive to another external. I would like to: Maintain all file metadata including, but not limited to security, modified date, owner, creater, ...
0
votes
0answers
17 views

Robocopy file modification even though MD5SUM matches

I recently joined a company where the admin setup DFS and pooched it by "helping DFS" by manually copying over files to speed up the process. Now on the Secondary site there is a huge backlog, and dfs ...
1
vote
0answers
20 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 ...
0
votes
0answers
66 views

Robocopy reports less than 100%

I'm using robocopy to copy a large number of files (300,000 files totalling around 4TB) from one NAS drive to another. Here is a sample command: robocopy \\nas1\myfolder \\nas2\myfolder /E /R:1 /W:5 ...
2
votes
1answer
52 views

Why does the trailing slash on the target confuse robocopy?

Why does the following robocopy command get confused? Remove the trailing slash from the dest ("S:\Temp Backup") and it works as expected. robocopy "S:\Temp\" "S:\Temp Backup\" /mir /ndl /mt /r:0 ...
2
votes
0answers
42 views

Robocopy always detects files as “newer” if destination is OneDrive synced

I'm trying to use robocopy to mirror files from a CIFS file share to a SharePoint library via the OneDrive sync client. Something I've noticed is that all the files get re-copied each time I run ...
1
vote
2answers
46 views

Robocopy And Using Variables In Powershell

I am trying to set up a robocopy job in powershell that copies files to a destination directory using an array and a variable. I want it to use a specific value based on the current date. Here is ...
0
votes
0answers
11 views

Robocopy not updating only changed files

I recently changed my old Win 7 computer for a Win 10 Pro. I always used Robocopy to synchronize some of my documents with another device (around 8000 files). In Win 7 I used the following statement: ...
0
votes
1answer
33 views

Robocopy: How do I copy files that do not exist in the destination, but copy them into a directory other than the destination?

Let's say my destination directory already contains some files. My source directory contains identical files PLUS some extra files that are not in the destination and I want to copy these extra files. ...
2
votes
1answer
165 views

Batch File for Extracting File Path and File Name from Log file

I am really trying to figure this out, so bear with me, and thanks in advance for any assistance. I'm still struggling with understanding proper use of FOR /F "Delims" and "Tokens". EDIT: Ultimately ...
1
vote
0answers
27 views

Robocopy log combining two file paths with “*EXTRA FILE”

I have a robocopy command that I use to backup files from a local Windows based home server to an external hard drive. The command I use to backup and log files is as follows: robocopy "F:\DATA" "W:\...
3
votes
2answers
454 views

issue with robocopy on copying files from source to destination of longpath

I am using robocopy $source $destination /MIR, the thing is it does copy files in sync with the source but skippnig the files and directories from source which are having long path names. i would ...
0
votes
1answer
58 views

Use PsExec to run robocopy

Hi I'm currently making a script that copies a directory to another. I'm currently using this: robocopy $splunkconfig 'C:\Program Files\SplunkUniversalForwarder\etc\apps' /is /it /copyall /mir But ...
0
votes
0answers
35 views

Robocopy: How to Include “Same files” /IS (ignoring timestamps and attrib.) and Exclude “changed” files /XC?

Perhaps this is slightly unorthodox usage of robocopy but unlike most I would like to 'Exclude Changes'; 'Include Same files' - ignoring differences in timestamp and perhaps attributes and 'include ...
0
votes
1answer
44 views

How do I write this in my batch script?

The command is robocopy M:\Tech_Supt\$Software\Open Way & Motion PC files and Config\OpenWay Install Objects\ C:\OpenWay Install Objects\ /e The path is awful due to the spaces and & ...
0
votes
1answer
84 views

How to let Robocopy remove extra file first

I use Robocopy src dst /MIR /NFL /NDL /NJH /NJS to backup src. It says target hard drive doesn't have enough space during the process. The target indeed have enough space, since a lot of files in ...
0
votes
0answers
19 views

Robocopy ignores files that have the exact same size and timestamp (Truecrypt volumes)

I'm backing up my documents, including a small Truecrypt container (.tc file). When I mount the Truecrypt countainer and modify files inside it, it does not change the file size or the date/time ...
0
votes
2answers
218 views

Robocopy command to copy updated files and long path names

I'm trying to write a robocopy command to copy from folders SR to DS. Folder DS might have files that already exist in Folder SR, but if Folder DS is updated, don't overwrite it. If folder/files ...
0
votes
1answer
75 views

How to robocopy *.doc but not *.docx

With robocopy D:\OLI1 E:\t95\oli1 /s "*.doc" I want to mirror all Word 95/2000 documents into a folder tree. Unfortunately this copies all docx-Files, too, as robocopy handles this like the file ...
0
votes
0answers
78 views

ROBOCOPY - Copy Changed Files to Multiple Locations

I have used ROBOCOPY to backup files from my home server for years. It's a simple /MIR switch. However, what I'd like to do is not only update the destination folder, but also copy those same new ...
33
votes
6answers
12k views

Will robocopy resume after being aborted?

My users directory is 58 GB in size and I am copying it to a portable USB backup drive from Windows recovery using Robocopy. robocopy G:\Users\ E:\Backup\T420\ /MIR /SEC /MT:32 /V /LOG:G:\bak\...
0
votes
1answer
17 views

Changed Robocopy script from network share to local share and it stopped logging

Original working code that copied files from one server to another and logged the activity Line 1: net use Y: "\\192.168.100.94\SQL_Backups" Line 2: net use Z: "\\192.168.100.94\SQL_Backups_Logs" ...
0
votes
0answers
94 views

ACLs with robocopy

I am trying to copy data from a Windows Server 2012 R2 to a QNAP NAS(ext4). I use the /MIR switch and I want to keep the ACLs on files and sub-folders unchanged. The problem is that the ACLs in the ...
0
votes
0answers
18 views

Robocopy skips folders at first passage, copies them later

I have 2 identical 4TB USB HD connected to my PC (Windows 10 home) The disk G: is full of files and folders, disk E: is brand new. I opened a cmd prompt and sent this command: robocopy g:\ e:\ /s ...
1
vote
2answers
135 views

migration from server 2008 to 2012 R2 using Robocopy

I have old file server running Server 2008 and I have new file server that will be replaced it running 2012 R2. They're both under the same AD . I have copied one share already using: robocopy \...
0
votes
2answers
156 views

copy a specific filetype from multiple subfolders into one folder

I want to copy from a folder with several subfolders all csv files to a single folder. But I only want files that are not older than 30 days. This is what i have so far: for /R C:\Source %%f in (*....
0
votes
0answers
22 views

Robocopy changes destination directory name in Windows 10

I am using this code to copy files from one directory to another: ROBOCOPY /E /DST "C:\Users\xxx\Documents" "C:\Users\xxx\Google Drive\backup_of_Documents_XPS" /XD "C:\Users\xxx\Documents\DONOTSYNC" ...
0
votes
1answer
254 views

Windows 10 cmd prompt: cannot use German u-Umlaut (ü) in paths, and changing the code page strangely doesn't work

On my Windows 10 machine I am trying to run a "robocopy" command to backup files. Everything is fine as long as the paths (to folders to backup) do not contain letters like ö, ü, ä which whoever is ...
0
votes
2answers
64 views

How to copy directory stucture, folders, sub-folders, files properties,metadata wihtout copying the actual content of files?

Softwares like DirLister, Snap2HTML I have a external disk of size 2tb,, and laptop with 500gb SSD and free time at work.. Copy Volume Shadow of External Disk, just directory structure and files, ...
0
votes
1answer
80 views

robocopy: excluding directories

I use robocopy to back up files. Because I need to exclude some directories, I tested the following switch first: /xd dirs t* It successfully excludes all directories whose name starts with t. That ...
2
votes
2answers
221 views

Robocopy - Possible issue while logging output?

I am evaluating if Robocopy will be a good option for me for my backup script that will take backup of only newer files from C drive (NTFS) to a Pendrive (exFAT). I have this command that I am ...
0
votes
0answers
67 views

Robocopy Hangs / Gets Stuck - Move to Next File Command/Timer?

I have an issue when I utilize Robocopy. I have a fairly homogeneous directory and I am trying to move it from one drive to another. The drive where the files reside must be corrupted. I would ideally ...
0
votes
0answers
17 views

File Management PS Script

I'm looking for a rather "complex" powershell script setup, not quite sure where to begin with it though. And if another program exists that can accomplish this I am all ears as well. Specifically I ...
1
vote
1answer
2k views

How to copy entire folders/directories in command prompt?

My laptop isn’t booting, so I’m running a Windows ISO off a DVD and attempting to backup some files to an external hard drive plugged into the USB via Command Prompt. With command prompt I can enter ...
1
vote
1answer
229 views

ROBOCOPY - Compare two directories to check which files are missing on the destination path?

I have two directories with the same name and same sub-folder names. I am running `ROBOCOPY “Source 1” “Source 2” . /L /NJH /NJS /NP /NS /log:reconcile.txt but it shows me new files from Source 1 ...
2
votes
2answers
515 views

Robocopy switches for incremental drive backup?

I have two hard drives: G: is an external USB drive connected to a Windows 10 PC H: is a network drive (another USB drive connected to the USB port of the home network router's USB port) I have ...
1
vote
0answers
85 views

How to make robocopy delete excluded files in destination directory

I have a cross-platform build toolchain which copies some folders to destination. I use robocopy on Windows and rsync on macOS because they support console progress output. The commands were in this ...
0
votes
1answer
23 views

Need To Compare Files In Directory And Delete Similar Files (but it's more complicated than the norm)

so I have a rather odd need in my work environment and I'm having a lot of trouble figuring it out. I'll try to make this as short and sweet as possible, but explaining some background is key as to ...
-1
votes
1answer
112 views

Robocopy - Copy File If New and Rename

I have a single backup file that gets created hourly, lets call it AUGUST.backup, I wish to create a Robocopy script that when ran will check the backup folder for new files, and if there is a new ...
0
votes
0answers
17 views

Strange Robocopy behavior in directory mirroring

I use robocopy to keep some directories synchronized between two iSCSI attached arrays on a Windows Server 2012. I have noticed strange behavior in Robocopy and have done a test. I created a script to ...
0
votes
1answer
29 views

Best language/system to auto-batch copy files & dir's with file rename in Windows 8/10?

Robocopy came so close, but is missing file rename on copy. So could people please direct me to a language or system in Windows that would be well suited to the following : This is meant to be a ...
2
votes
1answer
92 views

Why does my Robocopy always copy one file but not the other?

Trying to learn Robocopy for a basic backup plan, and I tried this in a bat file: @echo off echo "Hello World!" robocopy C:\Testfolder Z:\Testfolder pause where Z: is a network drive (a usb external ...
0
votes
0answers
32 views

Robocopy switches to make new copies of existing files?

This is for a very basic backup plan. Imagine that a full copy of c:/myfolder (and all its sub-folders) has already been created at d:/myfolder. Is it possible to use Robocopy as a daily/weekly job ...
1
vote
1answer
103 views

Robocopy Files and Folder Missing

I am using the following robocopy command. ROBOCOPY "C:\Users\Office\Pictures\Drew\Family Pictures" B:\Backup /S /E I can never find the files after they are copied. Robocopy see the files because ...
0
votes
1answer
77 views

Robocopy Error on local path?

When I run the file, it errors out and says "The filename, directory name, or volume label syntax is incorrect. My file is just one line for now to test and goes like this: @echo off robocopy "C:\...
0
votes
1answer
81 views

Robocopy copy directory instead of just its content

Simple question, no obvious solution. I have a folder called Test on the C drive (C:\Test). I have a folder called Test 2 on the D drive (D:\Test2). I want to robocopy the Test folder to the Test2 ...

1
2 3 4 5
8