17 lines
497 B
PowerShell
17 lines
497 B
PowerShell
#Variablen
|
|
#Variablen setzen
|
|
#variablendeklaration pfade
|
|
#scriptpfad ermitteln
|
|
#funktion get-scriptdirectory definieren
|
|
function Get-ScriptDirectory {
|
|
$Invocation = (Get-Variable MyInvocation -Scope 1).Value
|
|
Split-Path $Invocation.MyCommand.Path
|
|
}
|
|
#funktion an variable zuweisen
|
|
$scriptpfad = Get-ScriptDirectory
|
|
|
|
#### restic ####
|
|
### repository
|
|
$repository="\\fileserver2.grote.lan\Backup\restic"
|
|
|
|
#C:\Users\mg\Desktop\NextCloud\Programme\restic\bin\restic.exe init --repo $repository
|