593 B
593 B
Backup erstellen
Dienstag, 30. Dezember 2014
15:56
Set-Location "I:\"
$NowDate = Get-Date -UFormat %Y\%m\%d.%m.%Y get-date -format yyyyMd
$BackupPath = "E:\Backup\UsbStick\$NowDate\"
New-Item -Path $BackupPath -ItemType "Directory"
Get-Childitem "I:\" | ForEach-Object -Process { Copy-Item $_ -Destination $BackupPath -Recurse }
Copy-Item -Path C:\MyFolder -Destination \\Server\MyFolder -recurse -Force
$yesterday2 = (get-date -date ((get-date).AddDays(-3)) -format yyyyMd)
#nochzubearbeiten