You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
Bash
36 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
########################
|
|
# AWS RESTIC REPO VARS #
|
|
########################
|
|
|
|
## Only set these if LAN_AND_AWS_RESTIC is set to 'yes' in variables.sh
|
|
## Also ensure the restic vars in that file or for the LAN restic
|
|
|
|
## Only uncomment and set this var if you want it different from variables.sh
|
|
# readonly RESTIC_CALENDAR_RETENTION='yes'
|
|
|
|
## Set these for all restic configurations
|
|
export RESTIC_REPOSITORY='/path/to/repo'
|
|
export AWS_ACCESS_KEY_ID='KEY-ID'
|
|
export AWS_SECRET_ACCESS_KEY='SECRET-KEY'
|
|
export RESTIC_PASSWORD='PASSWORD'
|
|
readonly RESTIC_SOURCE='/path/to/dir/to/backup'
|
|
|
|
## RESTIC_CALENDAR_RETENTION must be set to 'yes' for these
|
|
## Remove readonly if you want different retention policies
|
|
readonly RESTIC_RETENTION_DAYS='0'
|
|
readonly RESTIC_RETENTION_WEEKS='4'
|
|
readonly RESTIC_RETENTION_MONTHS='0'
|
|
readonly RESTIC_RETENTION_YEARS='0'
|
|
|
|
## RESTIC_CALENDAR_RETENTION must be set to 'no' for this
|
|
## Remove readonly if you want different retention policies
|
|
# readonly RESTIC_RETENTION_KEEP_LAST='2'
|
|
|
|
## Recommendation is to leave the first tag be, and configure the second
|
|
readonly RESTIC_TAG_01="${HOSTNAME}"
|
|
readonly RESTIC_TAG_02='TAG-02'
|
|
|
|
## Leave this var be
|
|
readonly RESTIC_EXCLUDES="${SCRIPT_DIR}/resticExcludes" |