20 lines
705 B
PowerShell
20 lines
705 B
PowerShell
# Name your backup (only really for logging purposes)
|
|
$NAME="Backup Name"
|
|
# The directory to back up
|
|
$BACKUP_DIR="/dir/to/back/up"
|
|
# 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=""
|
|
# https://healthchecks.io uuid
|
|
$HEALTHCHECK_UUID=""
|
|
# name of a script to run before (ideally in the "pre/" dir)
|
|
$PRE_RUN_SCRIPT=""
|
|
# name of a script to run after (ideally in the "post/" dir)
|
|
$POST_RUN_SCRIPT=""
|
|
|
|
|
|
$Env:AWS_ACCESS_KEY_ID=
|
|
$Env:AWS_SECRET_ACCESS_KEY=
|
|
$Env:RESTIC_REPOSITORY="s3:https://repo.tld/bucket/sub-bucket"
|
|
$Env:RESTIC_PASSWORD=V3RYSecuRepaSsWord
|