Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
3 votes
3 answers
17k 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>[ ...] ...
boot4life's user avatar
  • 289
-2 votes
1 answer
567 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, ...
Chris Hill's user avatar
-1 votes
1 answer
1k 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%\...
hrace009's user avatar
1 vote
1 answer
7k 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 ...
jrich523's user avatar
  • 111
1 vote
0 answers
958 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?
user970638's user avatar
1 vote
0 answers
74 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 ...
raj's user avatar
  • 111
1 vote
2 answers
603 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 ...
Andreas's user avatar
  • 11
2 votes
1 answer
337 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 ...
Steve Freeman's user avatar
1 vote
1 answer
2k 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" ...
zer09's user avatar
  • 133
1 vote
0 answers
446 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 ...
Tony Mitera's user avatar
0 votes
4 answers
7k 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. ...
maurice's user avatar
  • 61
0 votes
1 answer
578 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 ...
user339128's user avatar
3 votes
2 answers
10k 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 ...
Jonesome Reinstate Monica's user avatar
3 votes
2 answers
34k 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 ...
sm_biz's user avatar
  • 33
4 votes
2 answers
41k 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 ...
Bineesh's user avatar
  • 43
3 votes
1 answer
1k 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 ...
Matthew's user avatar
  • 231
0 votes
3 answers
6k 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 ...
ptjuh's user avatar
  • 11
0 votes
1 answer
2k 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/...
Yash Saraiya's user avatar
3 votes
0 answers
640 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 ...
Shuo Dong's user avatar
7 votes
2 answers
26k views

What does my service account need to get around the error "Manage Auditing user right" in robocopy?

I am creating a scheduled task that calls robocopy from a script on Windows Server 2012 R2. It currently throws the following error regardless of it being run manually or from a scheduled task: ERROR ...
GeneBean's user avatar
  • 323
0 votes
1 answer
844 views

Best direction to synchronize two file servers (with robocopy)

I'am speaking of 'direction' in this questions but maybe it isn't the best word. Please correct me if I'm wrong after the full question. We have 2 file servers, one of them is the active one, and the ...
Carlos Garcia's user avatar
1 vote
2 answers
2k views

robocopy fails copy with multiple options

Using robocopy trying to copy files from network drive to local workstation folder with some options, but getting the error 123, 1314. The filename, directory name, or volume label syntax is incorrect ...
Techgeek's user avatar
3 votes
1 answer
2k views

Robocopy Invalid Parameter /BYTES

I would like to use robocopy with the /BYTES parameter. When I use it I receive an invalid parameter error: ERROR : Invalid Parameter #6 : "/BYTES" I am using Windows 7. When I do a robocopy /? I ...
hsimah's user avatar
  • 135
3 votes
0 answers
202 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 ...
JJJJNR's user avatar
  • 870
0 votes
1 answer
2k 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 ...
Fiernaq's user avatar
  • 41
2 votes
1 answer
10k 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 ...
Karl Is Wright's user avatar
0 votes
0 answers
82 views

Best way to spread ~4gb of data(windows updates) to ~50clients

I have a few Windows updates of a few operating systems. Those are made with the program wsusoffline and contain several .cab and .exe files. I got those on a USB. What is the best way to deploy them ...
wouter's user avatar
  • 1
2 votes
0 answers
1k views

Robocopy - change language

Is there a way to change the output language or robocopy? I have a lot of scripts that run and I find a script that extracts only important info from the output but works only in english which isn't ...
smark91's user avatar
  • 106
18 votes
1 answer
2k views

User accidentally messed up a Robocopy command and caused a bunch of folders to get created with corrupt security

We had a user run a robocopy command to copy some files but unfortunately the user accidentally messed up the syntax. Something like: robocopy "\\server1\share\Accounting" \\server1\share\...
TheCleaner's user avatar
  • 32.8k
0 votes
0 answers
506 views

Is this the Right Way to Perserve Owners, Permissions and Attributes when copying files with robocopy?

Note: This example is making a copy of an existing directory to an non-existing prior to copying directory. Note: When my scheduled tasks were giving me an error, this is how I went about attempting ...
leeand00's user avatar
  • 4,919
1 vote
6 answers
37k 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 ...
riahc3's user avatar
  • 515
1 vote
1 answer
17k views

Robocopy script copied permissions/subfolders everything but NOT shares

I ran this command on my new server: ROBOCOPY "\\oldserver\e$\folder" "e:\folder\" /COPYALL /SEC /MIR /LOG:logs.txt It copies all permission and mirrored my folder but later I realized that shares ...
Pythonoid's user avatar
4 votes
2 answers
38k views

Robocopy cannot find specific directory

I am migrating our file server from 2008 to 2012R2. Currently i am trying to copy all folders and files to our new server but the command isnt working correctly. Here is what i am using: robocopy G: ...
SenorWaffels's user avatar
1 vote
1 answer
165 views

SID not being set on

I copied two trees with robocopy, a source and a destination, with the intent of making their permissions exactly the same, I ran the following commands: robocopy /MIR C:\Windows\System32\tasks\ C:\...
leeand00's user avatar
  • 4,919
14 votes
1 answer
113k views

What is a S-X-X-XX-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXX-XXXX called in Windows security?

I copied two trees, a source and a destination, that I copied with robocopy like this: robocopy /MIR C:\Windows\System32\tasks\ C:\temp\robocopyTasks\out\ robocopy /E /Copy:S /IS /IT C:\Windows\...
leeand00's user avatar
  • 4,919
0 votes
1 answer
10k views

Using robocopy to correct date and time

After using robocopy to copy files to a new drive I realized that all the files and directories creation times had been reset to the time of copying. I now know that is standard for Microsoft. I have ...
dkocian's user avatar
  • 11
4 votes
2 answers
13k views

PathTooLongException error when using Get-ChildItem

I'm trying to generate a list of all known files on a file share with Attributes Archive and Offline. But I keep running into PathTooLongException errors. So far I've only found that Robocopy can ...
Marcus's user avatar
  • 41
1 vote
1 answer
3k 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 ...
renosis's user avatar
  • 203
5 votes
2 answers
13k 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:...
JJJJNR's user avatar
  • 870
4 votes
2 answers
7k views

Mirroring harddisk with compressed files with Robocopy

I tried to mirroring an existing disks on a new disks with less space. It is very important that the file structure, attributes and ACL's are exact as on the source disk. For this I tried robocopy....
larkee's user avatar
  • 191
-2 votes
1 answer
420 views

where can I learn the limitations of /LEV:n option of Robocopy command

Hey I am moving a file server to another datacenter. I use robocopy but I don't know the limits of the /LEV:nutility. Is this "n" can be 100 or something for some crazy admins? I searched but I didn't ...
mustafatufan's user avatar
4 votes
3 answers
10k views

Robocopy /xd with wildcards and sub-paths

I don't think this exact question has been asked before (I looked). My backup server runs a script using Robocopy, and I want to exclude files that don't really need to be backed up, specifically: *\...
nerdfever.com's user avatar
3 votes
1 answer
170 views

Windows Server to Server copy, executed remotely, process overview

Ok so I've got 3 servers in this example Server_A, Server_B, Server_C I want to move data over the network from Server_A to Server_B by executing a batch script on Server_C, it would be something ...
Shadowfox's user avatar
4 votes
3 answers
2k views

Move, and split up, 5TB of data

Here is the scenario: I have 5 TB (yes, that's a T) of files on a Windows server that I need to migrate to a new server in as short and efficient time as possible. (Think: Robocopy, Rsync, etc as I ...
Chad Johnson's user avatar
1 vote
3 answers
3k views

Fastest way to mirror directory over network

I am looking to speed up my deployment process, currently I have a single staging server, and a web-farm in production. I currently use robocopy to mirror each web-farm server from the staging server,...
Matthew's user avatar
  • 231
0 votes
1 answer
7k views

robocopy says its receiving invalid parameters in when used in powershell script

I'm attempting to use robocopy in a PowerShell script, but currently failing. When I run the following command manually robocopy \\corporatesystem00.local.com\C$\Maven\ \\corporatesystem01.local.com\...
FilBot3's user avatar
  • 234
8 votes
3 answers
15k views

How to get robocopy summary information involved in powershell?

I have a quick script written to compare file differences across servers, and then give a prompt for whether to mirror the changes. I'd like it to intelligently NOT prompt for copying if there aren't ...
jski's user avatar
  • 921
2 votes
1 answer
94 views

Robocopy Ext USB HD to Server 2008

I tried copying data from an external usb drive to my W2008 server, g:\parent_directory d:\server_shared\parent_directory. Unfortunately, I picked the "copyall" paramenter which copies over D=Data, A=...
user199899's user avatar
0 votes
1 answer
244 views

Robocopy files to different destinations - per file

I'm trying to mirror a direcory with images to a set of detination folders, where each folder receives only a part of the source directory. Example say the source contains 10 images: 1.jpg, 2.jpg, 3....
eno's user avatar
  • 1
2 votes
2 answers
15k 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 ...
Klee's user avatar
  • 141