Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
-1 votes
1 answer
32 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,
user avatar
  • 317
0 votes
0 answers
35 views

How to delete files in destination folder that are already present in source folder

I got two folders, a source S with files (and subfolders and so on): a.txt b.txt c.txt ... and a destination folder D with files: a.txt b.txt b1.txt c.txt c2.txt ... and I want to delete all files ...
user avatar
0 votes
0 answers
45 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 ...
user avatar
0 votes
0 answers
41 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: ...
user avatar
  • 1
0 votes
2 answers
339 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 ...
user avatar
0 votes
0 answers
106 views

Stopping Robocopy when /MOT or /MON switch is used

I tried almost Switches that are available with robocopy and am wondering how to stop the running of robocopy when one uses the switch option of /MON:2 OR /MON:5? Does /MON:2 Checks at certain ...
user avatar
  • 113
1 vote
1 answer
54 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 ...
user avatar
  • 113
1 vote
1 answer
252 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 ...
user avatar
0 votes
1 answer
132 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 ...
user avatar
  • 97
0 votes
0 answers
187 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-...
user avatar
1 vote
0 answers
31 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 ...
user avatar
0 votes
2 answers
228 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. ...
user avatar
  • 1
2 votes
0 answers
213 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 ...
user avatar
  • 1,699
1 vote
0 answers
62 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 ...
user avatar
  • 111
0 votes
0 answers
683 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 ...
user avatar
0 votes
1 answer
154 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 ...
user avatar
  • 101
3 votes
2 answers
3k 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 ...
user avatar
0 votes
1 answer
251 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 ...
user avatar
1 vote
1 answer
94 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 /...
user avatar
0 votes
1 answer
303 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-...
user avatar
0 votes
0 answers
3k 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 ...
user avatar
  • 1
0 votes
1 answer
121 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 ...
user avatar
  • 1,933
0 votes
1 answer
251 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 ...
user avatar
  • 1
0 votes
0 answers
358 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 ...
user avatar
  • 273
1 vote
0 answers
45 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 ...
user avatar
0 votes
1 answer
48 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 ...
user avatar
  • 1
1 vote
1 answer
3k 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 ...
user avatar
  • 183
2 votes
1 answer
4k 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
0 votes
0 answers
2k 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 ...
user avatar
2 votes
0 answers
63 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. ...
user avatar
  • 21
7 votes
3 answers
3k 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 ...
user avatar
  • 555
0 votes
1 answer
347 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 ...
user avatar
  • 11
1 vote
0 answers
86 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 ...
user avatar
  • 111
0 votes
2 answers
1k 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 ...
user avatar
  • 11
0 votes
1 answer
4k 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>...
user avatar
3 votes
0 answers
1k 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 ...
user avatar
  • 131
2 votes
0 answers
195 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 ...
user avatar
2 votes
1 answer
732 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 -...
user avatar
0 votes
2 answers
497 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 ...
user avatar
7 votes
2 answers
16k 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 ...
user avatar
  • 79
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 ...
user avatar
0 votes
0 answers
74 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 ...
user avatar
  • 681
1 vote
0 answers
224 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 ...
user avatar
0 votes
1 answer
632 views

Windows 2016 File Server - NTFS Permissioning issues

We are migrating 4 shares from NetApp to Windows 2016 File Server using following Robocopy command. 'Share Perms' on both sides are 'Everyone, Full Control' and expecting Robocopy to copy over 'NTFS ...
user avatar
  • 35
-1 votes
2 answers
3k views

How to copy user permissions in Windows server 2012 r2?

I have windows server 2012 r2 and two storage drive. lest say A and B. I have created users and given files and folder access in drive A but now it is crashed and now I want to give all the same user ...
user avatar
  • 101
13 votes
5 answers
18k views

Apparently Robocopy does not understand Windows Server 2016 deduplication. Is there a way to make it work without corrupting the volume?

Scenario: Doing a server migration from old Server 2008 R2 to new Server 2016, following this Server Fault guide: File server migration using Robocopy After Robocopy completes, enable deduplication ...
user avatar
1 vote
0 answers
200 views

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:\...
user avatar
  • 217
2 votes
1 answer
3k views

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 ...
user avatar
  • 43
0 votes
1 answer
916 views

Copy folder from network drive via GPO/scheduled task permissions

To install a portable software package, I'm using a scheduled task that runs on user logon to copy a folder from a network share to the local computer using robocopy. If I'm not mistaken, in order to ...
user avatar

1
2 3 4 5 6