Questions tagged [robocopy]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
19 views

Robocopy issue coping userprofile to server Share SecurityID can't be owner

So I have spent the last week or so writing a nice logon script to apply to group policy on my domain controller to have the effect of roaming profiles but to mitigate many of the issues with roaming ...
0
votes
1answer
29 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 ...
1
vote
1answer
19 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 /...
0
votes
1answer
152 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-...
0
votes
0answers
58 views

Robocopy move files from a directory but keep some files

I am trying to move files from one folder to another when it reaches a limit, and keep some files in the source using batch scripting. I tried with move but the source folder is read by another ...
0
votes
0answers
565 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 ...
0
votes
1answer
41 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 ...
0
votes
1answer
47 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 ...
0
votes
0answers
44 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 ...
0
votes
0answers
9 views

How to transfer robocopy directory and add an archive attribute to destination folder?

Robocopy %LOCATION_A %LOCATION_B /MIR /R:10 /W:5 /A+:A /V /COPY:DT I am trying to copy a directory and have the directory as well as all of it's sub-directories get an archive attribute added to it ...
1
vote
0answers
18 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 ...
0
votes
1answer
36 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 ...
1
vote
1answer
889 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 ...
2
votes
1answer
2k 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 ...
1
vote
1answer
887 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 ...
0
votes
0answers
771 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 ...
2
votes
0answers
58 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. ...
7
votes
3answers
2k 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 ...
0
votes
1answer
189 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 ...
1
vote
0answers
83 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 ...
0
votes
2answers
440 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 ...
0
votes
1answer
2k 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>...
3
votes
0answers
599 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 ...
2
votes
0answers
124 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 ...
2
votes
1answer
328 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 -...
0
votes
2answers
316 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 ...
6
votes
2answers
5k 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 ...
6
votes
1answer
401 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 ...
0
votes
0answers
52 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 ...
1
vote
0answers
71 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 ...
0
votes
1answer
453 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 ...
-1
votes
2answers
2k 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 ...
13
votes
4answers
12k 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 ...
1
vote
0answers
144 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:\...
1
vote
1answer
1k 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 ...
0
votes
1answer
489 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 ...
0
votes
1answer
3k views

RoboCopy not copying all files and folders

This is a bit of an extension of this thread.. Robocopy silently missing files I have a similar problem. I am using RoboCopy to copy files to a USB disk that will be transported to another location. ...
0
votes
0answers
363 views

Invoke Powershell Script Async? (Robocopy)

Our Backup Script runs every day. At the end of the month, every file should be moved to the "Staging" location, in order to be copied "to tape"... So, I wrote a PS-Script, moving all the files. ...
-3
votes
1answer
3k views

Robocopy in powershell

I want to copy the csv files from two different servers and then paste those files at some location on 3rd server. CSV File location on 1st server is - E:\HC_Disk\Sample\"+"DiskSpace-"+(Get-Date -...
5
votes
1answer
94 views

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 ...
2
votes
1answer
13k views

Copy single file using robocopy

I'm writing on a batch file to copy a certain file to a samba-share. I've already read robocopy transfer file and not folder and thought I would be good using robocopy "E:\Some\Path\with spaces" "\\...
0
votes
2answers
4k views

different size on disk after copying with robocopy

I've copied a folder using robocopy by using the command switches /mt /s /e /copyall /np /nfl /ndl When I navigate to -> Right Click -> Properties I can see a significant difference in size on disk ...
1
vote
2answers
3k views

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 ...
6
votes
1answer
11k views

Using robocopy to copy missing files/folders to a destination path

I recently synchronised an external hard disk which had approx 1.4 TB of data copied over with a GUI sync application on a Windows based file server. Sync direction, left to right. The problem that ...
0
votes
1answer
961 views

Q: How do i Activate Robocopy with /B (or /ZB) Flags?

Robocopy is failing when it is activated by clicking on my "run_bckup.bat" file. Although the batch file has Admin-privileges, the following line fails: Robocopy "%src%" "%trgt%" .. /B .. But ...
1
vote
0answers
54 views

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 ...
0
votes
0answers
4k views

Robocopy Log Output Format Issues

I am new to Robocopy and have been scouring over articles and technical forums. I seem to have the basic copy working fine from the testing I have been doing, however, my log file is virtually ...
0
votes
2answers
5k views

ROBOCOPY - Getting File System Type of Destination - Access is denied

I am trying to run a copy command to transfer a Zip file from the local file system to a UNC path on a different server. The file does copy but I get the below error and exit code 1. The user has full ...
1
vote
2answers
6k views

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 ...
0
votes
1answer
627 views

robocopy retain files in destination directory

Is there a way to retain files/directories in the destination directory while still Mirroring the source directory Source --- A.txt B.txt Destination --- Z.txt Run robocopy Destination -...

1
2 3 4 5 6