Allow extra args to restic-backup with RESTIC_BACKUP_EXTRA_ARGS

Fixes #56
This commit is contained in:
Erik Westrup
2022-02-01 16:12:16 +01:00
parent a4cd65db5a
commit 341f3e79ec
4 changed files with 13 additions and 0 deletions

View File

@@ -19,3 +19,6 @@ export B2_ACCOUNT_KEY="<b2-application-key>" # TODO fill with your applicationKe
# How many network connections to set up to B2. Default is 5.
export B2_CONNECTIONS=10
# Extra args to restic-backup. This is empty here and profiles can override this after sourcing this file.
export RESTIC_BACKUP_EXTRA_ARGS=

View File

@@ -32,3 +32,9 @@ export RETENTION_DAYS=14
export RETENTION_WEEKS=16
export RETENTION_MONTHS=18
export RETENTION_YEARS=3
# Optional extra arguments to restic-backup.
# Example: Add two additional exclude files to the global one in RESTIC_PASSWORD_FILE.
#RESTIC_BACKUP_EXTRA_ARGS="--exclude-file /path/to/extra/exclude/file/a /path/to/extra/exclude/file/b"
# Example: exclude all directories that have a .git/ directory inside it.
#RESTIC_BACKUP_EXTRA_ARGS="--exclude-if-present .git"