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
6
votes
3 answers

Backup with Mercurial and Robocopy?

The Problem We would like to backup our critical files from several network shares to a removable hard drive. We want to automate the backup so we don't have to remember to run it. It needs to finish overnight. Furthermore, we want to be able to…
Andrew Neely
  • 189
  • 11
6
votes
1 answer

How to copy junction points on Windows XP?

I have tried several different tools in order to be able to copy junction points on Windows XP but none of them copied the junction point as junction point. All programs I have tried so far are creating directories instead of junction points. I have…
ceving
  • 499
  • 4
  • 24
6
votes
7 answers

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 I'm not interested in. I want to do something…
SDGuero
  • 228
  • 1
  • 2
  • 4
6
votes
4 answers

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$\robocopyLog.txt /np Then I create a Scheduled Task in…
CC.
  • 1,186
  • 1
  • 10
  • 22
6
votes
1 answer

RoboCopy fails with "the specified network name is no longer available"

We have a scheduled task that runs robocopy periodically to mirror a rather large folder structure from one server to another (thousands of folders, 100,000+ files, 50+ GB in size). There is a share on the receiving server where the mirror gets…
Justin Scott
  • 8,748
  • 1
  • 27
  • 39
5
votes
1 answer

Server OS or PowerShell version differences that would affect copy speed?

I recently moved many, many files at 2 different locations. It was exactly the same set of data on each, using an identical robocopy command, but what took under 30 minutes on Windows Server 2012 R2 at our HQ (using PowerShell v4) took roughly 15…
5
votes
2 answers

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:DATSOU /log:c:\logfile.txt Is there a way that…
JJJJNR
  • 860
  • 4
  • 20
  • 32
5
votes
2 answers

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 roaming profile folders i.e. username.v2 are…
PnP
  • 1,684
  • 8
  • 37
  • 65
5
votes
3 answers

Why did robocopy cause my Windows 2012 server to hang last night?

I'm in the process of decommissioning an old 2003 server, which acts as a file server, and am just attempting a dry-run of migrating the file repository over to a new Windows Storage Server 2012 box. I'm using robocopy to copy over the files, and…
kafka
  • 547
  • 1
  • 15
  • 27
5
votes
2 answers

Robocopy, do not overwrite existing files, but copy the changed / new ones

Is it possible to mirror the two directories without overwritting the files in destination directory with new/changed/deleted files. Something like snapshots. Example: Copy the source directory with all files and sub-directories to destination…
I don't know.
  • 275
  • 3
  • 6
  • 17
5
votes
6 answers

How do I use robocopy to list all files over a certain size recursively?

I feel quite silly, since robocopy is server administration 101; but I seem to be having a problem listing files. I desire to list all files over 10MB in size in the directory and subdirectory. According to docs, this is what should work: robocopy…
mbrownnyc
  • 1,825
  • 8
  • 30
  • 50
5
votes
3 answers

Scheduled Robocopy task fails with 0x10 error

I'm trying to schedule a file-sync between two dedicated servers on a LAN. The remote machine is running Windows Server 2003 and the local machine is running Windows Server 2008. I mounted the remote folder as the J: network drive to overcome any…
4
votes
2 answers

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 source server to target server: robocopy "\\Source…
4
votes
2 answers

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: D:\ /e /zb /COPY:DATSOU /r:3 /w:1 /v/ /eta…
SenorWaffels
  • 93
  • 1
  • 1
  • 6
4
votes
2 answers

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 work past the file length errors except that I can't…
Marcus
  • 41
  • 1
  • 1
  • 2
1 2
3
18 19