Questions tagged [robocopy]
Robocopy is a command line file copy utility for Windows-based operating systems.
275
questions
0
votes
1
answer
23
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
0
votes
0
answers
52
views
Issues with robocopy /xf switch when using a variable for the /xf in powershell
I've got a cleanup job that is running daily to clean a number of directories based on a csv file.
The CSV file contains the following:
SourceFolder,MinAge(Days),SubDirectories(Y/N?),ExcludeItems
TEST,...
0
votes
3
answers
87
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 /...
0
votes
0
answers
72
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 ...
-1
votes
1
answer
112
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,
0
votes
0
answers
71
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
...
0
votes
0
answers
78
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:
...
0
votes
2
answers
1k
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 ...
1
vote
1
answer
298
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 ...
2
votes
1
answer
621
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 ...
0
votes
1
answer
315
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 ...
0
votes
0
answers
866
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-...
1
vote
0
answers
33
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 ...
0
votes
2
answers
381
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. ...
2
votes
1
answer
389
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 ...
1
vote
0
answers
65
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 ...
0
votes
1
answer
1k
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 ...
0
votes
1
answer
406
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 ...
3
votes
2
answers
5k
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 ...
0
votes
2
answers
486
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
1
answer
184
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
1
answer
391
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
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 ...
0
votes
2
answers
306
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
1
answer
408
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
0
answers
494
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 ...
1
vote
0
answers
72
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
1
answer
64
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
1
answer
4k
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 ...
3
votes
1
answer
6k
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
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 ...
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 ...
2
votes
0
answers
65
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
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 ...
0
votes
1
answer
480
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
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 ...
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 ...
0
votes
1
answer
5k
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
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 ...
2
votes
0
answers
258
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
1
answer
1k
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
2
answers
528
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 ...
8
votes
3
answers
23k
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
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 ...
0
votes
0
answers
118
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
0
answers
328
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
1
answer
730
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
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 ...
13
votes
5
answers
20k
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
0
answers
239
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:\...