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
2 answers

what is the best way to copy and replicate data

I have two HP Proliant DL160 G5s. One is currently in production (we'll call it NAS01) and the other (we'll call it NAS02) is built to the same config and almost ready to go. What I will be doing is replicating data from 01 to 02 so we can use 02…
Dennis
  • 47
  • 2
  • 7
2
votes
1 answer

Hudson copying files with Robocopy

I have hudson setup on a CI server, I'm using robocopy to copy files across to a webserver. I'm having some problems with exit codes. Robocopy reports so many different exit codes for success and failure, hudson doesn't understand them and reports…
TDH
  • 133
  • 1
  • 6
2
votes
4 answers

is ROBOCOPY a good form of backup as a tool?

seeing how it does not do a write verify unless scripted (or is it needed?) is it a decent option to dump a few folders to another server? i am just worried about whether the data, after being copied, might be corrupted but you would not be aware of…
dasko
  • 1,244
  • 1
  • 22
  • 29
2
votes
2 answers

How to avoid locking mysql tables with Robocopy

Some clients of ours complained about robocopy failing badly and locking tables, has anyone had any experience with running robocopy on a potentially active database? Could anyone explain the /b command-line switch?
Peter Turner
  • 2,048
  • 9
  • 33
  • 45
2
votes
1 answer

RoboCopy Access Denied, even with SeBackupPrivilege

My account is a member of the Backup Operators group on the domain and I run PowerShell in elevated admin mode. I checked my privileges with whoami /priv and saw SeBackupPrivilege listed (disabled but nothing weird so far). Still, when I run the…
2
votes
0 answers

robocopy not retrying failed files

I'm currently trying to fetch old files off of a box of floppy disks and many of the files fail on the first try but copy successfully after a few tries, I'm assuming because the internal cleaning mechanism is doing its job or something. I'm using…
austinian
  • 1,699
  • 2
  • 15
  • 29
1
vote
0 answers

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 sync only one directory and ran it at dawn 6…
1
vote
1 answer

Acess windows files with SeBackupPrivilege and SeRestorePrivilege

I have a full drive to move to another partition. The problem is that the design was poorly funded and now, we have to deal with lots and lots of different users accessing via SMB and applying their own permissions on their folders. In order to…
RedNano
  • 313
  • 1
  • 5
  • 10
1
vote
1 answer

What are the requirements of ROBOCOPY /SEC?

I just noticed some strange behavior using ROBOCOPY /SEC that I can't explain... We require a {TEMPLATE} folder holding +50 subfolders with custom access rights to be copied for each new project. For this I have created a simple batch script that…
Tiele Declercq
  • 119
  • 2
  • 4
1
vote
0 answers

Robocopy: log output doesn't explain what happened to the total=436 dirs?

Total Copied Skipped Mismatch FAILED Extras Dirs : 436 0 11 0 0 3 Can you explain that output of robocopy? I've used the /MIR parameter. What happened to my total = 436 dirs?
Robert
  • 111
  • 1
1
vote
0 answers

How do I use Power Shell to copy folders from local to remote Linux Server

I am trying to make a script that will let me update the files on the server by copying then from local. I made a bash script for this task that works on Linux, but a Power Shell script is also needed as my machine at work is running Windows…
1
vote
0 answers

robocopy, no access to certain file vs not being allowed to use that kind of command

I want to make an exact copy of a Windows User Profile and I thought robocopy would be the right tool for such a task. Now I am facing a little paradox situation run robocopy as admin robocopy C:\Users\myuser C:\Users\Public\myuserbackup /E /B…
vrms
  • 227
  • 4
  • 16
1
vote
2 answers

Robocopy Error 50 Accessing Destination Directory (Request is not supported)

I have setup a robocopy script that runs on a daily basis and synchronises data from a specific folder on a Windows Server 2016 storage server to a SMB share on a QNAP NAS. The Windows Server is domain authenticated, while the QNAP uses a standalone…
James White
  • 654
  • 3
  • 17
  • 32
1
vote
0 answers

Q: How Robycopy deals with pointers to directories (short-cuts)

For example, in the statement below robocopy %src% %target% copy:DATSO the parameter %src% may be a pointer to a directory. In my case, Robocopy FAILED TO COPY the content the pointer is pointing to. In case above %src% is a shortcut to directory…
Uri L
  • 11
  • 3
1
vote
2 answers

Robocopy logs of each day in a separate text file?

I'm using the batch file below: @echo for /f "tokens=1-3 delims=/ " %%a in ('date /t') do ( set _date=%%a%%b%%c ) robocopy D:\a D:\b /mir /mot:1 /log:"d:\logs\%_date%.txt" exit But it creates a single file. I'd want robocopy logs of each day…
Farrukh Khan
  • 31
  • 1
  • 2
  • 4