Pfad zu Repo angepasst

This commit is contained in:
Michael Grote 2021-10-09 11:21:04 +02:00
parent de03758cbb
commit e0b89081c2
5 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@ $scriptpfad = Get-ScriptDirectory
### pfad zu restic, wird mit & $pfad aufgerufen ### pfad zu restic, wird mit & $pfad aufgerufen
$pfad="C:\Users\mg\Desktop\NextCloud\code\restic\bin\restic.exe" $pfad="C:\Users\mg\Desktop\NextCloud\code\restic\bin\restic.exe"
### repository ### repository
$repository="\\fileserver2.grote.lan\backup\restic" $repository="\\fileserver2.grote.lan\restic"
### passwordfile ### passwordfile
$passwordfile="C:\Users\mg\Desktop\NextCloud\code\restic\config\password.txt" $passwordfile="C:\Users\mg\Desktop\NextCloud\code\restic\config\password.txt"
### exclude file ### exclude file

View file

@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \
$timestamp = get-timestamp # setzt den Zeitstempel $timestamp = get-timestamp # setzt den Zeitstempel
$hostname_ist = $env:computername # ist-hostname $hostname_ist = $env:computername # ist-hostname
$hostname_soll = "frida" # soll-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_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_backupdir1="C:\Users\amd"
$restic_backupdir2="" $restic_backupdir2=""
$restic_backupdir3="" $restic_backupdir3=""

View file

@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \
$timestamp = get-timestamp # setzt den Zeitstempel $timestamp = get-timestamp # setzt den Zeitstempel
$hostname_ist = $env:computername # ist-hostname $hostname_ist = $env:computername # ist-hostname
$hostname_soll = "irantu" # soll-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_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_backupdir1="C:\Users\mg"
$restic_backupdir2="C:\Portable_Programme" $restic_backupdir2="C:\Portable_Programme"
$restic_backupdir3="C:\Users\mg\AppData\Roaming\Apple Computer\MobileSync" $restic_backupdir3="C:\Users\mg\AppData\Roaming\Apple Computer\MobileSync"

View file

@ -25,9 +25,9 @@ $scriptpfad = Get-ScriptDirectory # setzt den Pfad zum Script ohne endendes \
$timestamp = get-timestamp # setzt den Zeitstempel $timestamp = get-timestamp # setzt den Zeitstempel
$hostname_ist = $env:computername # ist-hostname $hostname_ist = $env:computername # ist-hostname
$hostname_soll = "win3" # soll-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_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_backupdir1="C:\Users\mg\Desktop"
$restic_path= Join-Path $scriptpfad bin\restic.exe $restic_path= Join-Path $scriptpfad bin\restic.exe

View file

@ -12,6 +12,6 @@ $scriptpfad = Get-ScriptDirectory
#### restic #### #### restic ####
### repository ### 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 #C:\Users\mg\Desktop\NextCloud\Programme\restic\bin\restic.exe init --repo $repository