diff --git a/backup.ps1 b/backup.ps1 index ef5170f..58db102 100644 --- a/backup.ps1 +++ b/backup.ps1 @@ -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 diff --git a/env.sample.ps1 b/env.sample.ps1 index 38bc8e1..cf096bd 100644 --- a/env.sample.ps1 +++ b/env.sample.ps1 @@ -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 \ No newline at end of file +$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord