question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WindowsMachineFileCopy using /xd doesnt honor multiple machines

See original GitHub issue

when WindowsMachineFileCopy is used to copy to multiple machines, and the /XD option is used in the additional arguments in order to exclude a directory, the path specified needs to be able to replace the drive letter with all the servers in the list.

e.g. (server1, server2, server3) /XD c:\XXXX

needs to become

\\server1\c$\XXXX
\\server2\c$\XXXX
\\server3\c$\XXXX

similar to the way done with the destination path

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chshrikhcommented, Dec 27, 2016

@amccool /XD is used for excluding the source. So in logs you can see “Exc Dirs : \Sourceserver1\SkipThisFolder” . this will not get resolve as target paths.

0reactions
mvvsubbucommented, May 31, 2017

@amccool

Using multi config feature in Release you can achieve what you are looking for without adding multiple instances of task. I have given details with screen shots below

  1. Enable multi-configuration a. Select Run on Agent b. Expand Run on multiple agents in parallel section c. Set Type of parallelism to : Multi-configuration d. Set Multipliers to Machines e. Set Maximum number of agents to, some number depending on how many at a time you want to do.

Refer screen shot below

enable multi config

  1. Define multipliers variable in variable section with comma separated list of machine names on which you want to copy. Refer screen shot below

variables

  1. Make of the multiplier variable in your windows file copy as illustrated below. This does the trick of changing machine name for each config and execute the task.

task usage

Read more comments on GitHub >

github_iconTop Results From Across the Web

WindowsMachineFileCopy using /xd doesnt honor multiple ...
when WindowsMachineFileCopy is used to copy to multiple machines, and the /XD option is used in the additional arguments in order to exclude ......
Read more >
Several windows machine file copy tasks at the same time ...
Several windows machine file copy tasks at the same time failing with error "Multiple connections to a server or shared resource by the...
Read more >
Windows machine file copy v2 task - Microsoft Learn
Use this task to copy files to remote Windows machines. ... task: WindowsMachineFileCopy@2 inputs: SourcePath: # string. Required. Source.
Read more >
Untitled
Ice cream name in different languages? Dol ecomp training, Cokoladovna kitsee, Dander remover for furniture, Rescue pro free activation code, Malvindar?
Read more >
Adobe XD appears as not compatible on Creative Cloud ...
Creative Cloud desktop app shows Adobe XD as Not Compatible on a Windows machine that meets all the system requirements.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found