switched vss flag use

This commit is contained in:
Paul Wilde 2023-01-27 10:47:45 +00:00
parent a60c7000e4
commit 713324bfd2
2 changed files with 2 additions and 7 deletions

View file

@ -10,9 +10,6 @@ if ( $BACKUP_PARAMS ){
if ( $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
$running = get-process | ?{$_.path -eq "C:\Windows\system32\restic.exe"}
Write-Host $running

View file

@ -2,7 +2,7 @@
$NAME="Backup Name"
# The directory 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=""
# an exclude file, generally I use "exclusions.txt" that's ignored by git
$BACKUP_EXCLUDE_FILE=""
@ -12,11 +12,9 @@ $HEALTHCHECK_UUID=""
$PRE_RUN_SCRIPT=""
# name of a script to run after (ideally in the "post/" dir)
$POST_RUN_SCRIPT=""
# Use VSS
$USE_VSS = 1
$Env:AWS_ACCESS_KEY_ID=
$Env:AWS_SECRET_ACCESS_KEY=
$Env:RESTIC_REPOSITORY="s3:https://repo.tld/bucket/sub-bucket"
$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord
$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord