Questions tagged [robocopy]

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

Robocopy is a Microsoft command line file copy utility that is built into Windows Server versions 2008 R2 and newer. Examples of basic functionality include directory mirroring, copying files over a network, restartable copy and multiple exclusion/inclusion flags.

272 questions
2
votes
1 answer

ROBOCOPY: Copy all subfolders+content without the content of the root directory

I'm trying to copy all subfolders with their content of a specific folder but I don't want to copy the files in the root folder. For example, if my folder look like: - root - file.txt - sub1 - another-file.txt - sub2 -…
2
votes
1 answer

What is auditing info?

I trying to move files from Server A to server B using robocopy with their NTFS and share permissions. Robocopy has an /copyall option which should be able to do so, but the account I am using does not seem to have to right to use this option, but…
nano
  • 43
  • 1
  • 7
2
votes
2 answers

Using Robocopy to search and copy directories using pattern matching

I have tried to find an answer to this but most questions related to robocopy and pattern matching are focused on excluding folders whereas my intention is to include folders. Assuming i have the following folders.…
ziggy
  • 121
  • 1
  • 5
2
votes
1 answer

Robocopy complex exclude

How can I have robocopy exclude any file with a in the filename, unless it also has b? EG Exclude foo-a.txt foo-a-c.txt Include foo-a-b.txt foo-a-b-c.txt The /XF switch looks like it's the most promising, but I don't know how to construct the…
alt
  • 497
  • 2
  • 6
  • 15
2
votes
2 answers

Robocopy Error 5

When using robocopy to backup data in a directory tree to a NAS, I keep getting Error 5 - Copying NTFS Security to Destination Directory. Access denied. for folders which shouldn't return such error. The robocopy script is executed by a non-admin…
joebegborg07
  • 809
  • 5
  • 14
  • 23
2
votes
1 answer

Windows Server 2016 Essentials folder permissions

We just installed a Windows Server 2016 Essentials machine and are trying to migrate from a Synology DS412+. I created users, created Server Folders for each of our network shares, and applied the appropriate permissions, all using the Windows…
2
votes
1 answer

Robocopy permission issue

I'm using robocopy to sync files between two different servers (one of them is not a Windows server but exposes Windows-like shares); but I'm having a permission issue. I need to replicate all contents and also keep existing ACLs; I'm using a…
Massimo
  • 68,714
  • 56
  • 196
  • 319
2
votes
0 answers

Check file size changes before copying.

I need to move files from one directory to another on a daily basis. robocopy seems to be suitable but my problem is the files are made during some time (spectroscopy raw data) and I need to check that all files are complete. There are no specified…
2
votes
1 answer

Robocopy One-Way Sync

I think my command is wrong. I only want to do a oneway sync from c:\SmarterMail\Domains tp \\My.IP.Add.Ress\C$\SmarterMail\Domains My current command is this: robocopy /E /S /MIR /Z /W:1 /R:1 /MIR \\My.IP.Add.Ress\C$\SmarterMail\Domains…
Kevin
  • 133
  • 1
  • 2
  • 14
2
votes
3 answers

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 [ ...] Excludes files that match the specified names or paths.…
boot4life
  • 269
  • 2
  • 5
  • 12
2
votes
1 answer

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 359490 0 0 0 …
Steve Freeman
  • 195
  • 2
  • 13
2
votes
1 answer

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 Folder B 2a: IDENTICAL: Files that are identical in…
2
votes
0 answers

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 the default language on my computer. Many thanks!
smark91
  • 106
  • 9
2
votes
1 answer

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=Attributes, T=Timestamps, S=Security=NTFS ACLs,…
user199899
  • 21
  • 2
2
votes
2 answers

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 destinationMachine and from then on the contents…
Klee
  • 141
  • 1
  • 1
  • 5