From e0b89081c21e852cf0235cb938866a7798914c26 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Sat, 9 Oct 2021 11:21:04 +0200 Subject: [PATCH] Pfad zu Repo angepasst --- Befehle.ps1 | 2 +- backup_frida.ps1 | 4 ++-- backup_irantu.ps1 | 4 ++-- backup_win3.ps1 | 4 ++-- repo_anlegen.ps1 | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Befehle.ps1 b/Befehle.ps1 index c4a0c3a..1b736d1 100644 --- a/Befehle.ps1 +++ b/Befehle.ps1 @@ -8,7 +8,7 @@ $scriptpfad = Get-ScriptDirectory ### pfad zu restic, wird mit & $pfad aufgerufen $pfad="C:\Users\mg\Desktop\NextCloud\code\restic\bin\restic.exe" ### repository -$repository="\\fileserver2.grote.lan\backup\restic" +$repository="\\fileserver2.grote.lan\restic" ### passwordfile $passwordfile="C:\Users\mg\Desktop\NextCloud\code\restic\config\password.txt" ### exclude file diff --git a/backup_frida.ps1 b/backup_frida.ps1 index 84b06e6..037ca11 100644 --- a/backup_frida.ps1 +++ b/backup_frida.ps1 @@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \ $timestamp = get-timestamp # setzt den Zeitstempel $hostname_ist = $env:computername # ist-hostname $hostname_soll = "frida" # soll-hostname -$restic_logfile_dir="\\fileserver2.grote.lan\backup\restic\logs" # ordner fur die logs +$restic_logfile_dir="\\fileserver2.grote.lan\restic\logs" # ordner fur die logs $restic_logfile_name=-join($hostname_ist,"_",$timestamp,".log") # definiere logfile-dateiname -$restic_repository="\\fileserver2.grote.lan\backup\restic" # restic repo +$restic_repository="\\fileserver2.grote.lan\restic" # restic repo $restic_backupdir1="C:\Users\amd" $restic_backupdir2="" $restic_backupdir3="" diff --git a/backup_irantu.ps1 b/backup_irantu.ps1 index eb5e996..3edb29f 100644 --- a/backup_irantu.ps1 +++ b/backup_irantu.ps1 @@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \ $timestamp = get-timestamp # setzt den Zeitstempel $hostname_ist = $env:computername # ist-hostname $hostname_soll = "irantu" # soll-hostname -$restic_logfile_dir="\\fileserver2.grote.lan\backup\restic\logs" # ordner fur die logs +$restic_logfile_dir="\\fileserver2.grote.lan\restic\logs" # ordner fur die logs $restic_logfile_name=-join($hostname_ist,"_",$timestamp,".log") # definiere logfile-dateiname -$restic_repository="\\fileserver2.grote.lan\backup\restic" # restic repo +$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" diff --git a/backup_win3.ps1 b/backup_win3.ps1 index 222ddff..22db279 100644 --- a/backup_win3.ps1 +++ b/backup_win3.ps1 @@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \ $timestamp = get-timestamp # setzt den Zeitstempel $hostname_ist = $env:computername # ist-hostname $hostname_soll = "win3" # soll-hostname -$restic_logfile_dir="\\fileserver2.grote.lan\backup\restic\logs" # ordner fur die logs +$restic_logfile_dir="\\fileserver2.grote.lan\restic\logs" # ordner fur die logs $restic_logfile_name=-join($hostname_ist,"_",$timestamp,".log") # definiere logfile-dateiname -$restic_repository="\\fileserver2.grote.lan\backup\restic" # restic repo +$restic_repository="\\fileserver2.grote.lan\restic" # restic repo $restic_backupdir1="C:\Users\mg\Desktop" $restic_path= Join-Path $scriptpfad bin\restic.exe diff --git a/repo_anlegen.ps1 b/repo_anlegen.ps1 index 2c12620..c75740e 100644 --- a/repo_anlegen.ps1 +++ b/repo_anlegen.ps1 @@ -12,6 +12,6 @@ $scriptpfad = Get-ScriptDirectory #### restic #### ### repository -$repository="\\fileserver2.grote.lan\backup\restic" +$repository="\\fileserver2.grote.lan\restic" #C:\Users\mg\Desktop\NextCloud\Programme\restic\bin\restic.exe init --repo $repository