feat(scanner): more work on the scanner and can now scan to prod no lst right now
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
This commit is contained in:
12
scripts/LabelLayoutCopy.ps1
Normal file
12
scripts/LabelLayoutCopy.ps1
Normal file
@@ -0,0 +1,12 @@
|
||||
$source = "C:\Sources\AlplaPROD\MasterLayouts"
|
||||
$servers = @("USMCD1VMS036", "USSTP1VMS006", "USLIM1VMS006")
|
||||
$log = "C:\Sources\AlplaPROD\MasterLayouts\sync.log"
|
||||
|
||||
foreach ($server in $servers) {
|
||||
Add-Content $log "======================================"
|
||||
Add-Content $log "Syncing to $server at $(Get-Date)"
|
||||
|
||||
robocopy $source "\\$server\C$\Sources\AlplaPROD\MasterLayouts" /E /Z /R:2 /W:5 /FFT /XO /TEE /LOG+:$log
|
||||
|
||||
Add-Content $log "Finished $server with exit code $LASTEXITCODE"
|
||||
}
|
||||
Reference in New Issue
Block a user