switched vss flag use
This commit is contained in:
parent
a60c7000e4
commit
713324bfd2
2 changed files with 2 additions and 7 deletions
|
@ -10,9 +10,6 @@ if ( $BACKUP_PARAMS ){
|
||||||
if ( $BACKUP_EXCLUDE_FILE ) {
|
if ( $BACKUP_EXCLUDE_FILE ) {
|
||||||
$BACKUP_CMD="$BACKUP_CMD --exclude-file $dir/$BACKUP_EXCLUDE_FILE"
|
$BACKUP_CMD="$BACKUP_CMD --exclude-file $dir/$BACKUP_EXCLUDE_FILE"
|
||||||
}
|
}
|
||||||
if ( $USE_VSS -eq 1 ) {
|
|
||||||
$BACKUP_CMD = "$BACKUP_CMD --use-windows-vss"
|
|
||||||
}
|
|
||||||
#Write-Host $BACKUP_CMD
|
#Write-Host $BACKUP_CMD
|
||||||
$running = get-process | ?{$_.path -eq "C:\Windows\system32\restic.exe"}
|
$running = get-process | ?{$_.path -eq "C:\Windows\system32\restic.exe"}
|
||||||
Write-Host $running
|
Write-Host $running
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
$NAME="Backup Name"
|
$NAME="Backup Name"
|
||||||
# The directory to back up
|
# The directory to back up
|
||||||
$BACKUP_DIR="/dir/to/back/up"
|
$BACKUP_DIR="/dir/to/back/up"
|
||||||
# any additional params you want with restic
|
# any additional params you want with restic i.e. --use-fs-snapshot
|
||||||
$BACKUP_PARAMS=""
|
$BACKUP_PARAMS=""
|
||||||
# an exclude file, generally I use "exclusions.txt" that's ignored by git
|
# an exclude file, generally I use "exclusions.txt" that's ignored by git
|
||||||
$BACKUP_EXCLUDE_FILE=""
|
$BACKUP_EXCLUDE_FILE=""
|
||||||
|
@ -12,11 +12,9 @@ $HEALTHCHECK_UUID=""
|
||||||
$PRE_RUN_SCRIPT=""
|
$PRE_RUN_SCRIPT=""
|
||||||
# name of a script to run after (ideally in the "post/" dir)
|
# name of a script to run after (ideally in the "post/" dir)
|
||||||
$POST_RUN_SCRIPT=""
|
$POST_RUN_SCRIPT=""
|
||||||
# Use VSS
|
|
||||||
$USE_VSS = 1
|
|
||||||
|
|
||||||
|
|
||||||
$Env:AWS_ACCESS_KEY_ID=
|
$Env:AWS_ACCESS_KEY_ID=
|
||||||
$Env:AWS_SECRET_ACCESS_KEY=
|
$Env:AWS_SECRET_ACCESS_KEY=
|
||||||
$Env:RESTIC_REPOSITORY="s3:https://repo.tld/bucket/sub-bucket"
|
$Env:RESTIC_REPOSITORY="s3:https://repo.tld/bucket/sub-bucket"
|
||||||
$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord
|
$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord
|
||||||
|
|
Loading…
Reference in a new issue