Questions tagged [robocopy]

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

Robocopy is a Microsoft command line file copy utility that is built into Windows Server versions 2008 R2 and newer. Examples of basic functionality include directory mirroring, copying files over a network, restartable copy and multiple exclusion/inclusion flags.

272 questions
0
votes
2 answers

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 The source folder shows 1.1GB size on disk and the…
gabtzi
  • 103
  • 1
  • 5
0
votes
1 answer

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 starting the DOS-Window (open as Administrator) &…
Uri L
  • 11
  • 3
0
votes
0 answers

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 complete junk. The test script I am running currently…
Frosty81
  • 1
  • 1
  • 1
0
votes
2 answers

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 permissions on the destination…
John Corker
  • 51
  • 1
  • 1
  • 6
0
votes
1 answer

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 --- A.txt B.txt Z.txt
rookie01
  • 3
  • 2
0
votes
1 answer

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 the public desktop of each user every time I make…
user3487671
  • 1
  • 1
  • 1
0
votes
1 answer

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 previous server backed up to a NAS using Symantec…
USD Matt
  • 5,321
  • 14
  • 23
0
votes
1 answer

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?
Morignus
  • 23
  • 4
0
votes
2 answers

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 XXCopy. Well, XXCopy wants money and the Windows…
0
votes
1 answer

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 to move subdirectories inside test1 to the test2…
Shlomi
  • 321
  • 2
  • 6
  • 17
0
votes
1 answer

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 solve this and I don't get why this is…
Simkill
  • 235
  • 1
  • 2
  • 10
0
votes
1 answer

Robocopy to Linux Samba server over unreliable VPN resulted in corrupt files yet Robocopy said all files copied/matched

I ran into an interesting problem where I ran robocopy to copy hundreds of GB of files to a remote location for a test lab, the vpn dropped several times, copies retried - due to bandwidth limitations it was stopped, etc. All things that can explain…
0
votes
0 answers

Robocopy fails with security error copying "from nas to nas". Why?

[Hi all. Sorry for cross-posting. I originally posted this on stackoverflow, but later realize it's a better fit for server-fault. ] tl;dr robocopy has security problems copying from 'nas to nas' The system detected a possible attempt to…
user50460
  • 315
  • 1
  • 2
  • 8
0
votes
1 answer

Why robocopy with multi-treading copies faster

I have been using robocopy with the switch MT and really makes a difference in coping time. I would like to know why the CPU treads act as a bottle-neck while copying files or what makes robocopy with multi-treading copy faster.
kimo pryvt
  • 421
  • 4
  • 11
  • 22
0
votes
0 answers

1TB .vhd won't copy via Robocopy, access denied error 5

OK, I'm about to drive down to Mexico and bust this server with a hammer. Basically, the RAID 5 array is hosed, so we need to copy everything off it so we can rebuild the array. I have everything copied off the drive so far, EXCEPT for the .vhd for…
Steve Freeman
  • 195
  • 2
  • 13