Allow extra args for non-backup commands (#115)

* Allow extra args for non-backup commands

* Add example in doc

* Include global args in backup command

* Fix indent

* Restore set

* Modified: CHANGELOG.md

---------

Co-authored-by: Erik Westrup <erik.westrup@gmail.com>
This commit is contained in:
nettnikl
2023-06-02 22:28:52 +02:00
committed by GitHub
parent e072b6db14
commit 2406f078ef
3 changed files with 22 additions and 6 deletions
+7
View File
@@ -43,3 +43,10 @@ export RESTIC_RETENTION_YEARS=3
#RESTIC_BACKUP_EXTRA_ARGS="--exclude-file /path/to/extra/exclude/file/a --exclude-file /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"
# Optional extra space-separated arguments to all restic commands, i.e. global arguments.
# Example: Limit download speed to a maximum of 1000 KiB/s
#RESTIC_EXTRA_ARGS="--limit-download 1000"
# Example: Set custom sftp parameters or a custom path.
#RESTIC_EXTRA_ARGS="--option sftp.command='ssh\ backup-host\ -s\ sftp'"