Robocopy is a command line file copy utility for Windows-based operating systems.

learn more… | top users | synonyms

0
votes
5answers
6k views

Make incremental and differential backups with Robocopy?

I wanted to know if it is possible to make incremental and differential backups using just Robocopy and arguments. Putting it in a simple bat and making that bat run in Task Scheduler seems like a ...
-2
votes
0answers
16 views

I have accidentally used the XD command [on hold]

and now I have the original folder "2015" and another folder named "XD 2015" I cannot delete either one of these. It keeps saying this no longer exist. Help !!
1
vote
1answer
12 views

Robocopy with volume id paths?

Is it possible to use robocopy with volume id paths? C:\>robocopy /MIR /COPYALL /R:0 \\?\Volume{8a20c0df-ba3-44e9-8529-e6cd231a6759}\ \\?\Volume{3f1c91a3-39c0-11e6-a9fc-000c29ac2558}\ ------------...
0
votes
1answer
2k views

Robocopy - Share to Share copy over network - Files did not end up in the expected location

A client of mine recently got a new Windows 2012 server to replace an old Windows XP Professional computer we were using as a file server. Everything appeared to be copying fine, I stored a log file ...
0
votes
1answer
26 views

Robocopy logon script - copy all files, except 1, unless it doesnt exist

Currently have a GPO that calls a batch file at logon, that copyies files from one folder to another: Robocopy "C:\logon" "X:\user1" /mir /r:1 w:1 Exit This overwrites all the files in the ...
0
votes
0answers
26 views

1TB .vhd won't copy via Robocopy, access denied error 5

OK, I'm about to drive down to Mexico and bust this server with a hammer. Basically, the RAID 5 array is hosed, so we need to copy everything off it so we can rebuild the array. I have everything ...
0
votes
1answer
40 views

xcopy & robocopy - Encrypted during transfer?

I need to transfer some files on some windows hosts, as i come from the unix side, i searched for a tool similar to scp or rsync. I came across xcopy and robocopy and searched the manuals for a hint ...
2
votes
1answer
3k views

PathTooLongException error when using Get-ChildItem

I'm trying to generate a list of all known file on a file share with Attributes "Archive + Offline". But I keep running into PathTooLongException errors. So far I've only found that Robocopy can work ...
0
votes
2answers
24 views

How to exclude files in a folder with pattern with robocopy?

I'd like to exclude all files matching C:\dir1\*.ext so I say: robocopy C:\dir1 C:\dir2 /E /B /MIR /xf C:\dir1\*.ext According to the documentation this should work: /xf <FileName>[ ...] ...
4
votes
2answers
145 views

Robocopy from list.txt

I have a ton of user directories, that I need to move along with permissions to another location, the command I use on an individual basis is : robocopy "\filer\home" "h:\UserHome" /E /SEC /Copy:...
15
votes
2answers
51k views

What switches can robocopy use to preserve file and directory times on the target?

After using robocopy to copy files to a new drive I realized that all the file and directory creation times and been reset to the time of copying. Are there some switches to make robocopy keep the ...
59
votes
4answers
115k views

robocopy transfer file and not folder

I'm trying to use robocopy to tranfer a single file from one location to another but robocopy seems to think I'm always specifying a folder. Here is an example: robocopy "c:\transfer_this.txt" "z:\...
3
votes
4answers
3k views

Robocopy hiding folders on backup drives

I have a backup batch file that uses Robocopy to backup my files (note this example contains newlines that you should remove): robocopy "C:\" "G:\Default\RoboCopyBackup\C" /XF Pagefile.sys /XD "...
0
votes
1answer
71 views

Moving a lot of files with robocopy and 7zip

With the help of StackOverflow and a number of other places I've created the following script, the purpose is to look at a folder and it's subdirectories, if the files are older than 32 days -> move ...
-2
votes
1answer
27 views

Robocopy backup with date added BUT don't copy if you already have the files

I have found several posts about adding the date stamp to a backup but what I would like to do goes a bit beyond that. My situation is as follows: Weekly we do manual backups of software apps, ...
-1
votes
1answer
19 views

robocopy cannot find path [closed]

i have batch script like bellow: SET SOURCE=F:\Diff\For_VOYAGE\models.pck.files\models\players SET DESTINATION=F:\Diff\For_VOYAGE\models.pck.files\NEW\models\players SET LOG=LOG.txt robocopy %SOURCE%\...
0
votes
1answer
37 views

robocopy log all but only display header/summary

Is there any way to tell robocopy to log all the info but to show the header/summary (any high level info really)? I did some screwing around and when I used the NFL option for example, it actually ...
2
votes
2answers
8k views

Creating a service to run RoboCopy

I'm attempting to put together a batch file that will set up a robocopy task as a service in response to user input. The basic idea being that the user will input MyRobocopyBatchFile.bat sourceFolder ...
1
vote
0answers
19 views

Is Using Robocopy /B pointless as an Administrator?

From what I can tell, the /B switch only seems useful to grant a limited user the ability to make backups. Am I correct on this?
1
vote
0answers
52 views

Local Hard disk IO of robpcopy on copying file across remote PC

Robocopy is running in local machine in india and files are copied between remote machines in USA . command is indiamachine> robocopy \usamachine1\src \usamachine2\dest .in this scenario does files ...
4
votes
5answers
13k views

Copy multiple folders to a single destination with robocopy

I'm looking for a solution to use robocopy to copy several folders from a directory onto a distant network share. I want to choose several folders out of a directory that contains hundreds of folders ...
1
vote
2answers
35 views

Software for moving files and leaving shortcuts

i want to move files from my server to another server. This is working fine with robocopy but now i want to leave a shortcut in the old source directory with the same name like the moved file pointing ...
0
votes
0answers
21 views

How to use robocopy based on lgged in user

Presently I have the following command in a login script. I want to synchronize the users home drive to the users c:\data. robocopy G:\Backup\data C:\data /E /XO /Z /W:5 /R:3 /MT:32 /XD C:\Data\...
11
votes
2answers
12k views

Wildcard directory exclusions with robocopy — weird case

I need to get robocopy to exclude any file whose path contains a directory with a particular name. For example, "bar": c:\foo\bar\a.txt c:\bar\c.txt d:\baz\bar\flub\d.txt should be excluded, but ...
2
votes
1answer
18 views

Oddity with Robocopy

Can anyone explain what I'm seeing here? Total Copied Skipped Mismatch FAILED Extras Dirs : 20166 20166 20163 0 0 0 Files : 359490 ...
1
vote
1answer
29 views

robocopy with environment variable will cause 0x10

I tried this on command line and it will work correctly robocopy /mir /copy:DAT /mot:30 "D:\Source File\file" "E:\Target Directory\backup %DATE:/=-% %time::=-%" /xd "D:\Source File\file\excluded" ...
1
vote
0answers
59 views

Robocopy and IIS log date modified behavior

I am trying to create a mechanism (in my case Robocopy wrapped in PowerShell) that will back up IIS logs from all of our web servers into a central CIFS share. As you'd expect, I've had issues with ...
0
votes
3answers
53 views

Run scheduled task with other domain user

I have a .bat that copies files from source to destination. The source is the local joined server, the destination is a non-joined computer on the network. I need to run this .bat with task scheduler. ...
4
votes
4answers
15k views

Robocopy failure with Windows Server 2008 Scheduled Task

So I have a batch script for robocopy. Running this from the command line does exactly what I want. robocopy "D:\SQL Backup" \\server1\Backup$\daily /mir /s /copyall /log:\\lmcrfs4g\NavBackup$\...
0
votes
1answer
57 views

Robocopy permission denied as I cannot traverse folders

I am in the process of migrating few NAS shares from one storage to other. I am using robocopy to do the migration. Let me try to explain the issue. Sorry in case if its lengthy. I have cifs share ...
0
votes
1answer
416 views

rsync / robocopy /MIR to azure

We are looking to do two things with azure for off site backup: 1) We need to mirror local dir struct up to azure, like robocopy /MIR command 2) We need to purge files older than ____ days from ...
1
vote
1answer
100 views

Robocopy throws 'filename, directory name or syntax is incorrect' on local disk

I'm attempting to use robocopy to move files older than 5 years to another server, to reduce the size of a 3TB volume under 2TB so that the machine can be P2V'ed using Microsoft VM Converter. There ...
10
votes
3answers
18k views

Exclude only some files with the same name when copying using robocopy

I have a directory structure like this: folder1\ help.txt folder2\ help.txt folder3\ help.txt ... I want to copy the contents of folder1 using robocopy. For example: ...
4
votes
2answers
3k views

File server migration using Robocopy

I plan to migrate a file share from Windows server 2003 to Server 2012 R2 (It has more than 500 GB of data. FYI - It does not have DFS). I thought of using below command for copying the data from ...
3
votes
1answer
4k views

Robocopy falsely marks files as newer

I have two NTFS formatted drives on different machines and I do a robocopy mirror between them like this: robocopy "D:\My Documents" "X:\Backup\My Documents" /MIR /V /NP /XD .* /XO /XA:SHTO /FAT /Z /...
0
votes
1answer
154 views

Copy multiple files from different folders to 1 folder

i'm looking for a sollution to copy multiple files from different folders to 1 folder. What I have is that I need to copy files from c:\Customers\folderA\folderB\files copy to e:\FolderB\files The ...
2
votes
1answer
67 views

Get file system write cache queue size

I am copying a large amount of files from one server to another via robocopy to a UNC share. I notice that after robocopy completes that there is a large amount of disk activity that lasts for a ...
0
votes
2answers
1k views

How many threads is robocopy really using? [closed]

I'm trying to copy a huge number of small files (30M x 150k) from one server to another over a network, like this: robocopy sourceDir \\1.2.3.4\destDir /s /MT:32 /NP /LOG:d:\robocopy.log The copy ...
4
votes
2answers
2k views

Roaming Profile Permissions and Migration

Currently a client as 2003 DC and we are migrating them to a 2008R2 on a 2012 Hyper-V Host. They have a handful of roaming profiles - but with the usual setup - i.e. the only permissions on the actual ...
20
votes
7answers
59k views

How to get robocopy running in powershell?

I'm trying to use robocopy inside powershell to mirror some directories on my home machines. Here's my script: param ($configFile) $config = Import-Csv $configFile $what = "/COPYALL /B /SEC/ /MIR" $...
0
votes
1answer
104 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 location/...
0
votes
1answer
767 views

Robocopy Overwite IDENTICAL files but Rename Similar Files

Run-down 1: We need to copy files from one folder into another folder - Folder A -> Folder B (while preserving subfolder structure) 2: Some of the files in Folder A are IDENTICAL to files in ...
0
votes
0answers
97 views

server side copy for Linux does not work

I have a NAS embedded Linux device which has Samba4 installed and running. I have configured a samba share, and I am trying to do server-side copy within that samba share from a client. This is what I ...
2
votes
1answer
2k views

Long 'pause' after copying large files on windows 2008

I have a mystery regarding pauses after file copies on windows server 2088 (and other releases) When copying large files, like vhds, to locally attached USB disks I often see a long pause after the ...
3
votes
0answers
78 views

Robocopy from one to many

I am trying to use robocopy to update some internal AV clients that are not working. They will update once I the files are copied manually in. I've tried the following robocopy script, but can't get ...
5
votes
2answers
57k views

How do I get robocopy to use a log file which includes spaces?

I'm trying the following command: robocopy "x:\dir" "y:\dir" /mir /z /tee /fft /nfl /ndl /eta /log:"x:\path to logs\12-15-11 01 file with spaces.txt" I'm getting this error: ERROR : Invalid ...
3
votes
2answers
700 views

NAS Migration: Preserve “Previous Versions” shadow copies

We're planning a forklift upgrade of our NAS and were going to use a utility like Robocopy to move the files over. However we'd like to preserve Windows' "Previous Versions" shadow copies. Any way to ...
0
votes
1answer
227 views

Copy folder structure template to current folder

When our users create a new Project folder, I would like it to automatically copy a template folder structure and the template's permissions. So far the only thing I've come up with is a batch script ...
14
votes
6answers
25k views

The Job and Monitoring Options of RoboCopy

What does the Job Options of RoboCopy do? And what exactly does the /MON and /MOT switches do? How can I use them? I don't understand them, and can't find any examples on how to use them. /MON:...
3
votes
5answers
20k views

Server 2008 robocopy access denied to user folders + /B error I don't understand

This is a two-parter. A) Trying to do this in server 2008, with command being run by domain admin: Robocopy \server\c$\users D:\backupfolder /MIR I get "Access Denied" on all files in the user ...