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.
38 lines
1.3 KiB
Bash
38 lines
1.3 KiB
Bash
8 months ago
|
#!/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'
|
||
8 months ago
|
# readonly AWS_CONNECTIONS='2'
|
||
|
# readonly AWS_UPLOAD='2440'
|
||
8 months ago
|
export RESTIC_PASSWORD='PASSWORD'
|
||
|
readonly RESTIC_SOURCE='/path/to/dir/to/backup'
|
||
|
|
||
|
## RESTIC_CALENDAR_RETENTION must be set to 'yes' for these
|
||
8 months ago
|
## Remove readonly if you want different retention policies
|
||
8 months ago
|
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
|
||
8 months ago
|
## Remove readonly if you want different retention policies
|
||
8 months ago
|
# 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"
|