Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Robocopy

$
0
0

Hi I am trying to write powershell script for robocopy .

Requirement as below example 

Source(Server1)                Destination ( Server2) 

c:\backup\1                          d:\backup

c:\backup\2                          D:\backup

 

wrote script it works but now user requested some additions

Like 

 

Source 

c:\backup\1                          d:\backup\1 and other folder in same place like d:\backup\1_1 

c:\backup\2                          d:\backup\2 and other folder in same place like d:\backup\2_1

 

if i use more than one robocopy command it doesn't work , I am not great at powershell any help will be much appreciated 

 

 

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles