18 lines
494 B
PowerShell
18 lines
494 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="\\OMVV2.grote.lan\Backup-v2\restic"
|
|||
|
|
|||
|
#C:\Users\mg\Desktop\NextCloud\Programme\restic\bin\restic.exe init --repo $repository
|