Skip to content

Instantly share code, notes, and snippets.

@pkutzner
Created February 10, 2018 05:01
Show Gist options
  • Save pkutzner/249759165c8c6b778f2ce2507cb77758 to your computer and use it in GitHub Desktop.
Save pkutzner/249759165c8c6b778f2ce2507cb77758 to your computer and use it in GitHub Desktop.
Environment file for resticbackup.sh
# API credentials
#
# Amazon S3:
#AWS_ACCESS_KEY=<MY_ACCESS_KEY>
#AWS_SECRET_ACCESS_KEY=<MY_SECRET_ACCESS_KEY>
#
# Backblaze B2:
B2_ACCOUNT_ID=<B2_ACCOUNT_ID>
B2_ACCOUNT_KEY=<B2_ACCOUNT_KEY>
#
# Microsoft Azure Blob Storage:
#AZURE_ACCOUNT_NAME=<ACCOUNT_NAME>
#AZURE_ACCOUNT_KEY=<ACCOUNT_KEY>
#
# Google Cloud Storage:
#GOOGLE_PROJECT_ID=123123123123
#GOOGLE_APPLICATION_CREDENTIALS=${HOME}/.config/gs-secret-restic-key.json
# Restic repository path. Use one of the following conventions
# depending on what cloud provider you are using:
#
# AWS S3:
# - s3:s3.amazonaws.com/bucket_name[/base/path]
#
# Backblaze B2:
# - b2:bucketname:[/base/path]
#
# Microsoft Azure:
# - azure:foo:/[base/path]
#
# Google Cloud Storage:
# - gs:foo:/[base/path]
#
RESTIC_REPOSITORY="CHANGEME"
# Location of file containing restic backup password.
# Make sure file permissions are secure. If this
# password is lost, YOU WILL LOSE ACCESS TO YOUR BACKUPS!
RESTIC_PASSWORD_FILE="/path/to/password/file"
# Array of paths to back up.
BACKUPDIRS=(
'/some/path/here'
'/another/path/here'
)
# Upload limit in KiB/s
# e.g. 1024 KiB/s == 1 MiB/s
# Default = unlimited
#ULIMIT=1024
# Download limit in KiB/s
# e.g. 1024 KiB/s == 1 MiB/s
# Default = unlimited
#DLIMIT=1024
# === SCRIPT DEFAULTS ===
# Un-comment and adjust to taste
# Used when pruning old backups, will save
# specified number of previous backups for the
# specified set.
#MONTHLY_SNAPSHOTS_TO_REMEMBER=12
#WEEKLY_SNAPSHOTS_TO_REMEMBER=4
#DAILY_SNAPSHOTS_TO_REMEMBER=30
#
# Day of week (0=Sun, 1=Mon .. 6=Sat) to perform
# weekly backups on.
#DOWEEKLY=6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment