From 58d50cbf8eff8f3c07da320967d96e9cf66546c8 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 22 Oct 2021 20:59:16 +0200 Subject: [PATCH] =?UTF-8?q?irantu:=20Pfade=20gek=C3=BCrzt,=20werden=20scho?= =?UTF-8?q?n=20abgedeckt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backup_irantu.ps1 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backup_irantu.ps1 b/backup_irantu.ps1 index 3edb29f..ae2afa4 100644 --- a/backup_irantu.ps1 +++ b/backup_irantu.ps1 @@ -30,14 +30,12 @@ $restic_logfile_name=-join($hostname_ist,"_",$timestamp,".log") # definiere logf $restic_repository="\\fileserver2.grote.lan\restic" # restic repo $restic_backupdir1="C:\Users\mg" $restic_backupdir2="C:\Portable_Programme" -$restic_backupdir3="C:\Users\mg\AppData\Roaming\Apple Computer\MobileSync" -$restic_backupdir4="C:\Users\mg\AppData\LocalLow\NGU Industries" $restic_path= Join-Path $scriptpfad bin\restic.exe ################################ Logik ####################################### if ($hostname_ist -eq $hostname_soll){ Write-Host -ForegroundColor GREEN "restic backup laeuft..." - & $restic_path --cleanup-cache --repo $restic_repository --password-file $scriptpfad\config\password.txt backup --exclude-file $scriptpfad\config\exclude.txt $restic_backupdir1 $restic_backupdir2 $restic_backupdir3 $restic_backupdir4 2>&1> $restic_logfile_dir\$restic_logfile_name + & $restic_path --cleanup-cache --repo $restic_repository --password-file $scriptpfad\config\password.txt backup --exclude-file $scriptpfad\config\exclude.txt $restic_backupdir1 $restic_backupdir2 2>&1> $restic_logfile_dir\$restic_logfile_name if (($LastExitCode -eq 0) -or ($LastExitCode -eq 3)){ #3 besagt das bestimmte Dateien nicht geoeffnet werden konnten Write-Host -ForegroundColor GREEN "restic backup erfolgreich"