SSD: aktualisiert
This commit is contained in:
parent
5bbb342c24
commit
383c683d3e
1 changed files with 7 additions and 16 deletions
|
@ -18,24 +18,18 @@ $hostname_ist = $env:computername
|
|||
$hostname_soll = "irantu"
|
||||
|
||||
# Ziele/Quellen
|
||||
$quelle1 = "C:\VM"
|
||||
$quelle2 = "C:\Portable_Programme"
|
||||
$quelle3 = "C:\Users\mg\Desktop"
|
||||
$quelle4 = "\\fileserver3.grote.lan\vm\Mint_lol"
|
||||
#$quelle5 = ""
|
||||
$quelle6 = "\\fileserver3.grote.lan\proxmox"
|
||||
$quelle1_name = "vm"
|
||||
$quelle4 = "\\fileserver3.grote.lan\proxmox"
|
||||
|
||||
$quelle2_name = "programme"
|
||||
$quelle3_name = "desktop"
|
||||
$quelle4_name = "mint_lol"
|
||||
#$quelle5_name = ""
|
||||
$quell6_name = "proxmox"
|
||||
$ziel1="$scriptpfad\$hostname_ist\VM"
|
||||
$quell4_name = "proxmox"
|
||||
|
||||
$ziel2="$scriptpfad\$hostname_ist\Portable_Programme"
|
||||
$ziel3="$scriptpfad\$hostname_ist\Desktop"
|
||||
$ziel4="$scriptpfad\$hostname_ist\mint_lol"
|
||||
#$ziel5="$scriptpfad\$hostname_ist\"
|
||||
$ziel6="$scriptpfad\$hostname_ist\proxmox"
|
||||
$ziel4="$scriptpfad\$hostname_ist\proxmox"
|
||||
|
||||
# Hostname prüfen
|
||||
if ($hostname_ist -eq $hostname_soll)
|
||||
{
|
||||
|
@ -54,9 +48,6 @@ If(!(test-path $scriptpfad\logs))
|
|||
New-Item -ItemType Directory -Force -Path $scriptpfad\logs
|
||||
}
|
||||
|
||||
robocopy $quelle1 $ziel1 /MIR /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle1_name.log"
|
||||
robocopy $quelle2 $ziel2 /MIR /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle2_name.log"
|
||||
robocopy $quelle3 $ziel3 /MIR /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle3_name.log"
|
||||
robocopy $quelle4 $ziel4 /MIR /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle4_name.log"
|
||||
#robocopy $quelle5 $ziel5 /MIR /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle5_name.log"
|
||||
robocopy $quelle6 $ziel6 /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle6_name.log" /S /PURGE /MAXAGE:1
|
||||
robocopy $quelle4 $ziel4 /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle4_name.log" /S /PURGE /MAXAGE:1
|
||||
|
|
Loading…
Reference in a new issue