Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [robocopy]

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

0
votes
0answers
24 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
23 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. ...
6
votes
3answers
368 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
59 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
20 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
118 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
353 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>...
2
votes
0answers
148 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
51 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
166 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
177 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
291 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
114 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
44 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
52 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
104 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
729 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
4k 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
111 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
481 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
152 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
1k 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
159 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
1k 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
93 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 ...
0
votes
1answer
6k 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
2k 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
2k 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 ...
4
votes
1answer
5k 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
349 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
47 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
2k 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
1answer
2k 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
1answer
2k views

robocopy logs of each day in separate text file.?

i'm using below mention batch file @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 create ...
0
votes
1answer
195 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 -...
0
votes
1answer
915 views

Robocopy - Copy a single file from a directory and overwrite a file in a destination directory if its newer

All, I've come across an issue with deploying a time sheet to users. I've researched robocopy a little bit and think it might be a solution. I need to overwrite a copy of the time sheet located on ...
-1
votes
1answer
330 views

robocopy to new server and new domain

First question here so I thank you in advance for any input. Simple situation but a little different from the usual ones, so I want to confirm before proceeding. Small office with less than 10 users. ...
0
votes
1answer
293 views

Sync WindowsImageBackup folder

I have a server running Windows Server 2016 Essentials. (Usually try and avoid the SBS type versions although I was hoping they hadn't hobbled things in 2016, ... but yes, they have) This customers ...
0
votes
1answer
637 views

Robocopy (/MIR) only those files that are older then X days then those in destination folder

Is there a way to robocopy using /MIR only those files from source, that are older X days then the files in destination?
-1
votes
1answer
460 views

batch file command to continue execution after calling a powershell script which is located outside

Need one command, let me explain my query. I am running a robocopy command using the .bat file robocopy c:\Testing d:\Testing After above command, I am calling powershell script by using below ...
0
votes
2answers
334 views

Sync folders & files from Windows 2003 server to Windows 2012 R2 server

I need to sync several hundred GBs of data from a Windows 2003 server to a Windows 2012 R2 server. I originally thought of using Rsync via my Linux box but Googling an answer showed me Robocopy and ...
1
vote
2answers
408 views

Copying files from one machine to several others, all on the same small network

I'm looking to automate a copying job that I usually do manually. I've never worked with scripting, and I have little networking knowledge, so it's entirely possible that the answer is simpler than I ...
2
votes
2answers
943 views

Using Robocopy to search and copy directories using pattern matching

I have tried to find an answer to this but most questions related to robocopy and pattern matching are focused on excluding folders whereas my intention is to include folders. Assuming i have the ...
3
votes
1answer
263 views

robocopy wierd behavior for /copyall

When I use robocopy with /copyall flag, the 1st attempt for the files will be display as "New Files" and the output will display the number of new files copied and other transfer/bytes information. ...
1
vote
1answer
115 views

Need to copy files where source files are in directories but want target files to land in single directory

I have been asked to see if I can copy many files from a source that has directories and sub directories and for the taget to be a single directory. All files to one directory. If there happens to be ...
1
vote
1answer
59 views

Robocopy complex exclude

How can I have robocopy exclude any file with a in the filename, unless it also has b? EG Exclude foo-a.txt foo-a-c.txt Include foo-a-b.txt foo-a-b-c.txt The /XF switch looks like it's the most ...
0
votes
1answer
2k views

forfiles how to move a directory to another directory

I'm trying to move a directory which certain date parameter to another directory.. This is the command I'm using: FORFILES -p C:\test1\ /S /D -3 /C "cmd /c if @isdir == TRUE move C:\test2\" I want ...
2
votes
1answer
721 views

Robocopy Error 5

When using robocopy to backup data in a directory tree to a NAS, I keep getting Error 5 - Copying NTFS Security to Destination Directory. Access denied. for folders which shouldn't return such error. ...
2
votes
1answer
2k views

Windows Server 2016 Essentials folder permissions

We just installed a Windows Server 2016 Essentials machine and are trying to migrate from a Synology DS412+. I created users, created Server Folders for each of our network shares, and applied the ...
0
votes
1answer
518 views

Robocopy script skipping files

I have a robocopy script that's skipping all files even though I'm specifically telling it to move PDF and CSV files and directories recursively. Directories are being created. Can someone help me ...