SSD: aktualisiert

This commit is contained in:
Michael Grote 2023-09-21 19:09:13 +02:00
parent 383c683d3e
commit a7ba8802bb
1 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@ $hostname_soll = "irantu"
# Ziele/Quellen
$quelle2 = "C:\Portable_Programme"
$quelle3 = "C:\Users\mg\Desktop"
$quelle4 = "\\fileserver3.grote.lan\proxmox"
$quelle2_name = "programme"
$quelle3_name = "desktop"
@ -28,7 +28,7 @@ $quell4_name = "proxmox"
$ziel2="$scriptpfad\$hostname_ist\Portable_Programme"
$ziel3="$scriptpfad\$hostname_ist\Desktop"
$ziel4="$scriptpfad\$hostname_ist\proxmox"
# Hostname prüfen
if ($hostname_ist -eq $hostname_soll)
@ -50,4 +50,3 @@ If(!(test-path $scriptpfad\logs))
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 /R:3 /W:10 /DST /TEE /UNILOG+:"$scriptpfad\logs\$timestamp-$quelle4_name.log" /S /PURGE /MAXAGE:1