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.

276 questions
0
votes
1 answer

How to sync web site files cross Windows Web Server 2008 R2 servers in realtime?

I have a web site generating files at runtime, this web site is deployed on 2 servers Operation system, Windows Web Server 2008 R2. I am looking for a manner to sync the changed and new files from one server to another, one-way sync. DFS-R, anybody…
0
votes
2 answers

Copy Random files using Robocopy

Can we use robocopy to copy random x number of files from one network share to another in Windows server 2008/ Windows server 2003?
lrn
0
votes
2 answers

Robocopy website deployment script log file name truncated in AM

This is an IIS website deployment script I started to write. It moves files from directory A to directory B and creates a log file with the date/time as the file name. When it's run in the AM hours, the time part of the log file name gets…
JustBeingHelpful
  • 1,964
  • 7
  • 37
  • 53
0
votes
1 answer

Robocopy - include subdirectories of an excluded directory

I'm using Robocoy to transfer a directory and all it's contents. I use the following command as part of a batch file to copy the directories wile ignoring the images subdirectories. ROBOCOPY C:\source C:\destination /S /L /XD C:\source\images Most…
fearoffours
  • 101
  • 3
0
votes
2 answers

Copy large amount of small files using robocopy from USB disk to SATA disk

Would specifying the /MT option in robocopy give me better or worse performance, when copying a large amount of smaller files (~10-150kB) from an USB attached drive to an internal SATA drive? Should I go all crazy and specify /MT:128? Both drives…
Tobias Hertkorn
  • 359
  • 5
  • 12
0
votes
1 answer

Checking the network connectivity stats for slow file transfer using Robocopy

I am trying to transfer a 6.5 GB file between two Windows Server 2003 machines on our network. Using Robocopy //sourceserver1 //destinationserver2 filname /z is making the file transfer crawl and after three hours of initiating the request the file…
sc_ray
  • 107
  • 1
  • 6
0
votes
1 answer

How to use robocopy and zip destination folders?

All sources are on windows OS, and destination backup is on Unix system (we are using Samba). My source repository is similar to : -Repository --Folder1 ---Files --Folder2 ---Files etc... I would like to get a destination similar to…
user44782
  • 265
  • 1
  • 3
  • 5
0
votes
8 answers

Robust file-copying utility

I'm looking for a file copy utility that allows me to control what files and directories are to be copied specifying rules like: IF source-file-date IS GREATER THAN target-file-date THEN overwrite IF source-file-size IS EQUAL TO target-file-size…
GetFree
  • 1,500
  • 7
  • 23
  • 37
0
votes
1 answer

Can we use RoboCopy to synchronize data?

I have a project where we are moving from on-premise file share to AWS FSx. I need your suggestion on data synchronization. I decided to use the RoboCopy tool to copy the data. We need to also copy data with file permissions. I'm using the command…
0
votes
1 answer

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
d12
  • 103
  • 2
0
votes
0 answers

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,N,*.txt;*.csv;*.bmp TEST2,0,N,*.csv;*.bmp I'm…
Etterz
  • 1
  • 1
  • 1
0
votes
1 answer

How do I know if robocopy skipped the file I am copying?

I am using a batch file to copy a database backup file using robocopy (on Windows 7/2008) and need to restore (with replace) the database only after the backup file is really changed (not skipped by robocopy). robocopy \\server\share . foo.bak /TBD…
user26088
0
votes
3 answers

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 /log:c:\logs\log.txt /v /tee /w:2 /r:0…
Stefan
  • 117
  • 5
0
votes
0 answers

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 specific folders because speed is important to…
0
votes
0 answers

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…