@@ -5,8 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [7.3.1] - 2022-04-11
|
||||||
### Fixed
|
### Fixed
|
||||||
- `resticw` is now a true wrapper in that it support `--` args to restic.
|
- `resticw` is now a true wrapper in that it support `--` args to restic.
|
||||||
|
- OnFailure no longer masked by the stderr redirect to systemd-cat. [#86](https://github.com/erikw/restic-automatic-backup-scheduler/pull/86)
|
||||||
|
|
||||||
## [7.3.0] - 2022-02-15
|
## [7.3.0] - 2022-02-15
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ Type=simple
|
|||||||
Nice=10
|
Nice=10
|
||||||
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
|
# $HOME or $XDG_CACHE_HOME must be set for restic to find /root/.cache/restic/
|
||||||
Environment="HOME=/root"
|
Environment="HOME=/root"
|
||||||
# The random sleep (in seconds) is in the case of multiple backup profiles. Many restic instances started at the same time could case high load or network bandwith usage.
|
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
|
||||||
|
# Random sleep (in seconds): in the case of multiple backup profiles. Many restic instances started at the same time could case high load or network bandwith usage.
|
||||||
# `systemd-cat` allows showing the restic output to the systemd journal
|
# `systemd-cat` allows showing the restic output to the systemd journal
|
||||||
ExecStart=bash -c 'ps cax | grep -q restic && sleep $(shuf -i 0-300 -n 1); source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_backup.sh 2>&1 | systemd-cat'
|
ExecStart=bash -c 'set -o pipefail; ps cax | grep -q restic && sleep $(shuf -i 0-300 -n 1); source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_backup.sh 2>&1 | systemd-cat'
|
||||||
|
|||||||
@@ -9,5 +9,6 @@ Conflicts=restic-backup.service
|
|||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
Nice=10
|
Nice=10
|
||||||
# `systemd-cat` allows showing the restic output to the systemd journal
|
# pipefail: so that redirecting stderr from the script to systemd-cat does not hide the failed command from OnFailure above.
|
||||||
ExecStart=bash -c 'source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh 2>&1 | systemd-cat'
|
# `systemd-cat`: allows showing the restic output to the systemd journal
|
||||||
|
ExecStart=bash -c 'set -o pipefail; source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh 2>&1 | systemd-cat'
|
||||||
|
|||||||
Reference in New Issue
Block a user