Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
0 votes
2 answers
29 views

Can robocopy use multiple /SD (source directory) parameters?

I'm creating a robocopy job file for users to back up their local data to a network share. I want to give them the option of not just backing up their user data, but application configuraiton files ...
theillien's user avatar
  • 449
1 vote
1 answer
198 views

If Robocopy is run from a different server, does it copy the files across the network if the source and destination are the same server?

As part of our build and deployment process, we deploy applications from Server A (our build server running GitHub self-hosted runner) to Server B (web server). The process involves publishing from ...
Airn5475's user avatar
  • 111
0 votes
0 answers
105 views

Robocopy getting access denied but Copy isn't

For Offline work purposes, I was asked to copy users Network drive to their local machines and then from that point forward keep the two sync'd up. I am having a weirdly hard time even starting this ...
NetAdmin's user avatar
0 votes
0 answers
38 views

Windows Server 2016 File Server GPT (4K cluster size) to GPT (8K cluster size) (or Robocopy)

We are replacing our GPT partitioned E:\ drive which is out of space, and migrating those files over to the new F:\ drive which is GPT. The directory tree will stay the same. E:\ drive 15TB (4K ...
Cell-o's user avatar
  • 327
0 votes
1 answer
472 views

Can we use RoboCopy to synchronize data?

I have a project where we are moving from on-premise file share to AWS FSx. I need your suggestion on data synchronization. I decided to use the RoboCopy tool to copy the data. We need to also copy ...
Bobby Deol's user avatar
0 votes
1 answer
108 views

How are files routed through the network when using a copy command with UNC paths as the source and destination?

Given a command like robocopy "\\UNC1" "\\UNC2" /E /MT:128 /R:0 /W:0 executed from a workstation. Do files move like this or more like
d12's user avatar
  • 103
0 votes
3 answers
219 views

Robocopy only copy *.vhdx files in root folder

how can I copy with Robocopy only *.vhdx files in the root directory? It is important to me that the file attribute and secuirty is preserved. I used robocopy \\Server\Users ServerNew\Users /sec /mir /...
Stefan's user avatar
  • 117
0 votes
0 answers
215 views

Start-Process argument list includes nested quotes - still possible to do?

After searching for answers and trying many things, nothing is working. Goal: Run robocopy from within Powershell in order to grab the latest 30 days of files from a user's home directory, omitting ...
Mike Mc.'s user avatar
-1 votes
1 answer
156 views

Copying large file with robocopy during VMWare storage vmotion

if I copy massive files via robocopy during storage vmotion then is there any negative impact ? thanks,
Cell-o's user avatar
  • 327
0 votes
0 answers
180 views

Copy files from the same subdirectory to the same Directory in Windows

I am having a hard time describing the problem and I can't find the solution anywhere so here is an example SourceFolder\ProjectA\Legal\ContractA.txt SourceFolder\ProjectB\Legal\ContractB.txt ...
Artrelay's user avatar
0 votes
0 answers
112 views

How to merge two data sources with slightly different folder names

How can I copy all .msg files that are spread throughout some GUID sub-folders in one folder to another folder that has a slightly different folder name at the end. Is it possible? So for example: ...
Damian's user avatar
  • 1
0 votes
2 answers
2k views

How to copy with robocopy the time attributes without re-copying the files

I transferred the files to a new disk but found that files with the wrong year (1980) and these files I can't open with Photoshop. I would like to copy the time attributes from the first drive to the ...
kiloponge's user avatar
1 vote
1 answer
506 views

Using the Robocopy across the Virtual Machines

I have two virtual machines (VM) with Windows Server 2019 at my disposal and Each VM is located at two different Data Centre which are separated geographically. Do I need to keep both VM on the Same ...
Raky's user avatar
  • 113
2 votes
1 answer
938 views

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 ...
Hamza Ben's user avatar
0 votes
1 answer
484 views

copying many folders with not inherited permissions

So we have this folder with hundreds of user folders (not sure what they are used for but there is mostly Desktop, Documents and Favorites). We need to back them up to another disk, but the problem is ...
Vitas's user avatar
  • 157
0 votes
0 answers
1k views

append date and time before each line in a text log file in windows 10

I want to append date and time before each line in a text log file in windows I run iperf command in cmd in windows 10. iperf.exe -c192.168.5.199 -u -t4 -i1 -f Kbytes -w1024k -b1024k >> client-...
Jyoti Kumar's user avatar
1 vote
0 answers
54 views

Robocopy not copying 66% of files

I need to move the contents of a network share to another location and am trying to use robocopy to do this - robocopy /mir /tee /log:logfile.txt This runs and returns no errors - but when I compare ...
Name already taken's user avatar
0 votes
2 answers
491 views

Windows - robocopy kill server service and server stop respond to smb - how to real time sync folders over lan without samba?

I have nightmare in company. New server 2019 with all patches. I use Robocopy to sync files to backup server. Robocopy kill smb "server service" several times per day, no any event log. ...
foler's user avatar
  • 1
2 votes
1 answer
581 views

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 ...
austinian's user avatar
  • 1,729
1 vote
0 answers
80 views

Limit access on network share to a specific computer, Device claim under DAC not working

There are certain confidential data and we want to make sure that is does not get copied by user and eventually leaked out of organisation. For achieving the same, we have defined a restricted windows ...
Amit's user avatar
  • 111
0 votes
1 answer
2k views

robocopy doesn't remove attributes from copied folders

I try to use robocopy to copy all userdata from : "C:\Users" Command: robocopy /b /e /xjd /sl /a-:RSH /r:1 "C:\Users" "E:\backup" In the User directories are hidden ...
int3g3r's user avatar
0 votes
1 answer
629 views

parallel instances of Robocopy not getting CPU time

I'm trying to copy large directories from 3 sites. I noticed that robocopy was using < 25% of my CPU, I figured I can spawn 2 more instances in parallel to copy the other 2 sites. However, I am ...
Ching Liu's user avatar
  • 101
3 votes
2 answers
6k views

Robocopy command is very slow over the network

I am trying to copy near to 2 TB files over the network using robocopy command. But it is really slow and now it's near to more that one day but still files are not copied. Robocopy "\DC01\Shared ...
Tharindu Damith's user avatar
0 votes
2 answers
626 views

Robocopy mirroring only based on filename

I would like to mirror a shared drive directory to a Sharepoint library. It seems that Robocopy copy each time every file. My command line is Robocopy "source" "dest" /MIR /FFT /Z /XA:H /W:5 I ...
Geoffroy Cruxifix's user avatar
1 vote
1 answer
325 views

Can multiple exclusion switches be used simultaneously in robocopy commands?

For the windows robocopy command: Can I simultaneously use both /XD "DirectoryName" and /XO (for files older than those already in dest.) Example: robocopy /E "K:\clientPack" "C:\clientPack" /XO /...
James Resoldier's user avatar
0 votes
1 answer
481 views

Lock-Bitlocker after Robocopy - access denied

I'm trying to create a backup script that unlocks an external bitlocker drive, robocopies files to it, then locks it when it's done. I am able to unlock and copy just fine, but the final step of "Lock-...
ChiefMo's user avatar
0 votes
0 answers
4k views

Robocopy - ERROR 87 (0x00000057) Accessing Destination Directory

I'm currently using a robocopy in a loop performing the following command over a number of different directories: robocopy $sourceFolder $purgeFolder /MOV /LEV:0 /MINAGE:$OlderThan All source folder ...
Etterz's user avatar
  • 1
0 votes
2 answers
656 views

How to keep a local folder’s contents synchronized with a network share? (Windows)

I would like to have a local folder on all of my domain connected computers kept in sync with a share on one of my servers. Only Domain Admins and the SYSTEM account should have Modify permissions to ...
Corey's user avatar
  • 2,081
0 votes
1 answer
585 views

Robocopy for only deltas in a certain time frame

Is there a way to utilize Robocopy to target only files/folders that were modified within a certain time range? For example, if there is a file share with n-number of folders/files dating back several ...
Helene's user avatar
  • 1
0 votes
0 answers
711 views

Permissions: Robocopy vs NTFS

It seems that NTFS rules take precedence over Robocopy when copying folders from one volume to another. Is there a way around this? Example: Copying a folder from one volume to another using the ...
Rich M's user avatar
  • 273
1 vote
0 answers
89 views

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 ...
Marcelo Magalhães's user avatar
0 votes
1 answer
90 views

How can I Robocopy between servers and just manage the deltas without destroying existing content?

I've been playing around a bit with Robocopy on my local machine, and I'd like to do it between different servers now. I've stood up a server and created a blank folder called "Test2." On my local ...
Tanya's user avatar
  • 1
1 vote
1 answer
5k views

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 ...
RedNano's user avatar
  • 343
3 votes
1 answer
7k views

Robocopy DCOPY:DAT invalid paramter?

I want to clone an sd card, trying to use robocopy. What's wrong with the following statement? ROBOCOPY e:\ c:\backup /MIR /COPYALL /DCOPY:DAT Output: Invalid Paramter #5 : "/DCOPY:DAT" What works ...
membersound's user avatar
1 vote
1 answer
4k views

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 ...
Tiele Declercq's user avatar
0 votes
0 answers
3k views

What is the cause of ERROR 1327 "Account restrictions are preventing this user from signing in..." when ROBOCOPY is copying files?

I am using ROBOCOPY to copy some files from a remote share to a local folder on a server. The file set is fairly large (about 500,000 files). The copy process starts and runs successfully for an hour ...
Matthew MacFarland's user avatar
2 votes
0 answers
68 views

Extreme Latency Using Storage Migration Service

Issue Summary: High latency experienced on LAN when running a Storage Migration Service job -- copy share data from one DC to another. Latency drops considerably when using a simple robo script. ...
alex415's user avatar
  • 21
7 votes
3 answers
4k views

Copying terabytes of hundreds of thousands of files in folder slow

I am currently running FreeNAS and using SMB 3 on windows machines to copy folders with 80000+ files that are all about 35MB each. Here is the config FreeNAS 2x40Gbps connections bonded connection ...
cohortq's user avatar
  • 475
0 votes
1 answer
541 views

Copy files and folders by specific days of the month

I'd like to create a batch file to copy the files and folders by specific days. For example, 15th and 30th of the month(not 15th to 30th) copy the files and folder to another location. How can I write ...
fedora's user avatar
  • 11
1 vote
0 answers
90 views

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 ...
Robert's user avatar
  • 111
0 votes
2 answers
2k views

How to full copy the C:\Windows folder?

I have a question about cmd - robocopy, on my server. Is it possible to use that command as a way to emergency backup all files from C:\Windows? I am going to do some Windows Server Updates, and I ...
Renver's user avatar
  • 11
0 votes
1 answer
6k views

Use robocopy to only copy files not folders

I am trying to write a script that copies all files in my source folder to another folder but without the folder structure, so just the files. So far I have: robocopy "<source>" "<target>...
Phillip Duphnee's user avatar
3 votes
0 answers
2k views

Copy large amount of file - better to "pull" or to "push"?

I need to copy a large amount from "old" server to "new" server. Both servers are Windows Servers Is there a difference if I go onto old server, access new server by unc path and "push" files onto ...
Volker's user avatar
  • 131
2 votes
0 answers
309 views

Which attributes/descriptors are changed by hardlinking a file on Windows?

I'm working on a little backup script using robocopy and hardlinks. My aim is to have differential backups using similar concept as rsync's --link-dest without having to resort to 3rd party tools. For ...
Disassembler's user avatar
2 votes
1 answer
2k views

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 -...
Shay Friedman's user avatar
0 votes
2 answers
568 views

Use Robocopy or Powershell to search folder, rename and move

I'm trying to figure out a solution for this ex. paths C:\Designs\CustomerA\PhotoshopFiles\ C:\Designs\CustomerB\PhotoshopFiles\ C:\Designs\CustomerC\PhotoshopFiles\ What I want to do is move the ...
T Henrique's user avatar
8 votes
3 answers
28k views

Robocopy - Overwrite all files unless file in destination is newer

The title pretty much sums it up. I had restored a file share recently from a backup. Come to find out after about a day of users in production we started to notice some files were corrupt. Pulling ...
cvidal's user avatar
  • 89
6 votes
1 answer
2k views

Windows 2012 Robocopy with Deduplication active

Current Issue: File Cluster Disk of 14 TB Size needs an CHKDSK which can't be done because it lasts too long. So I'm going to replace this disk in the storage of the cluster. I run many times the ...
donduc_jr's user avatar
0 votes
0 answers
134 views

Is there a tool that allows mirroring of a merge of two source directories onto the given target directory without intermediate copying/moving?

robocopy makes it easy to mirror a single directory onto a target directory. But what if I have two source directories with disjoint sets of files and I want the merge of them to be mirrored? I do ...
mark's user avatar
  • 755
1 vote
0 answers
366 views

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 ...
Pedro Henrique's user avatar

1
2 3 4 5 6