@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
### Added
|
### Added
|
||||||
- Allow extra arguments to restic-backup with `$RESTIC_BACKUP_EXTRA_ARGS`.
|
- Allow extra arguments to restic-backup with `$RESTIC_BACKUP_EXTRA_ARGS`.
|
||||||
|
- Add `$RESTIC_VERBOSITY_LEVEL` for debugging.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Align terminology used in README with the one used by B2 for credentials (keyId + applicationKey pair).
|
- Align terminology used in README with the one used by B2 for credentials (keyId + applicationKey pair).
|
||||||
|
|||||||
@@ -22,3 +22,7 @@ export B2_CONNECTIONS=10
|
|||||||
|
|
||||||
# Extra args to restic-backup. This is empty here and profiles can override this after sourcing this file.
|
# Extra args to restic-backup. This is empty here and profiles can override this after sourcing this file.
|
||||||
export RESTIC_BACKUP_EXTRA_ARGS=
|
export RESTIC_BACKUP_EXTRA_ARGS=
|
||||||
|
|
||||||
|
# Verbosity level from 0-3. 0 means no --verbose.
|
||||||
|
# Override this value in a profile if needed.
|
||||||
|
export RESTIC_VERBOSITY_LEVEL=0
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ wait $!
|
|||||||
# --one-file-system makes sure we only backup exactly those mounted file systems specified in $BACKUP_PATHS, and thus not directories like /dev, /sys etc.
|
# --one-file-system makes sure we only backup exactly those mounted file systems specified in $BACKUP_PATHS, and thus not directories like /dev, /sys etc.
|
||||||
# --tag lets us reference these backups later when doing restic-forget.
|
# --tag lets us reference these backups later when doing restic-forget.
|
||||||
restic backup \
|
restic backup \
|
||||||
--verbose \
|
--verbose=$RESTIC_VERBOSITY_LEVEL \
|
||||||
--one-file-system \
|
--one-file-system \
|
||||||
--tag $BACKUP_TAG \
|
--tag $BACKUP_TAG \
|
||||||
--option b2.connections=$B2_CONNECTIONS \
|
--option b2.connections=$B2_CONNECTIONS \
|
||||||
@@ -60,7 +60,7 @@ wait $!
|
|||||||
# See restic-forget(1) or http://restic.readthedocs.io/en/latest/060_forget.html
|
# See restic-forget(1) or http://restic.readthedocs.io/en/latest/060_forget.html
|
||||||
# --group-by only the tag and path, and not by hostname. This is because I create a B2 Bucket per host, and if this hostname accidentially change some time, there would now be multiple backup sets.
|
# --group-by only the tag and path, and not by hostname. This is because I create a B2 Bucket per host, and if this hostname accidentially change some time, there would now be multiple backup sets.
|
||||||
restic forget \
|
restic forget \
|
||||||
--verbose \
|
--verbose=$RESTIC_VERBOSITY_LEVEL \
|
||||||
--tag $BACKUP_TAG \
|
--tag $BACKUP_TAG \
|
||||||
--option b2.connections=$B2_CONNECTIONS \
|
--option b2.connections=$B2_CONNECTIONS \
|
||||||
--prune \
|
--prune \
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ trap exit_hook INT TERM
|
|||||||
# Check repository for errors.
|
# Check repository for errors.
|
||||||
restic check \
|
restic check \
|
||||||
--option b2.connections=$B2_CONNECTIONS \
|
--option b2.connections=$B2_CONNECTIONS \
|
||||||
--verbose &
|
--verbose=$RESTIC_VERBOSITY_LEVEL &
|
||||||
wait $!
|
wait $!
|
||||||
|
|||||||
Reference in New Issue
Block a user