Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f17848bed2 | ||
|
|
d5497b04b4 | ||
|
|
855997d7d7 |
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [7.3.4] - 2022-04-29
|
||||||
|
### Fixed
|
||||||
|
- Backup stats notifications: fix issue where `restic snapshots --latest 2` will show more than two snapshots due to different backup paths used.
|
||||||
|
|
||||||
|
## [7.3.3] - 2022-04-14
|
||||||
|
### Fixed
|
||||||
|
- Trying to fix broken Homebrew bottles due to GitHub API issues.
|
||||||
|
|
||||||
## [7.3.2] - 2022-04-11
|
## [7.3.2] - 2022-04-11
|
||||||
### Fixed
|
### Fixed
|
||||||
- Trying to fix broken Homebrew bottles
|
- Trying to fix broken Homebrew bottles
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ assert_envvars() {
|
|||||||
local varnames=("$@")
|
local varnames=("$@")
|
||||||
for varname in "${varnames[@]}"; do
|
for varname in "${varnames[@]}"; do
|
||||||
if [ -z ${!varname+x} ]; then
|
if [ -z ${!varname+x} ]; then
|
||||||
printf "%s must be set for this script to work.\n\nDid you forget to source a /etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2
|
printf "%s must be set for this script to work.\n\nDid you forget to source a $INSTALL_PREFIX/etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
@@ -115,6 +115,7 @@ if [ "$RESTIC_NOTIFY_BACKUP_STATS" = true ]; then
|
|||||||
latest_snapshot_diff=$(restic snapshots --tag "$RESTIC_BACKUP_TAG" --latest 2 --compact \
|
latest_snapshot_diff=$(restic snapshots --tag "$RESTIC_BACKUP_TAG" --latest 2 --compact \
|
||||||
| grep -Ei "^[abcdef0-9]{8} " \
|
| grep -Ei "^[abcdef0-9]{8} " \
|
||||||
| awk '{print $1}' \
|
| awk '{print $1}' \
|
||||||
|
| tail -2 \
|
||||||
| tr '\n' ' ' \
|
| tr '\n' ' ' \
|
||||||
| xargs restic diff)
|
| xargs restic diff)
|
||||||
added=$(echo "$latest_snapshot_diff" | grep -i 'added:' | awk '{print $2 " " $3}')
|
added=$(echo "$latest_snapshot_diff" | grep -i 'added:' | awk '{print $2 " " $3}')
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ assert_envvars() {
|
|||||||
local varnames=("$@")
|
local varnames=("$@")
|
||||||
for varname in "${varnames[@]}"; do
|
for varname in "${varnames[@]}"; do
|
||||||
if [ -z ${!varname+x} ]; then
|
if [ -z ${!varname+x} ]; then
|
||||||
printf "%s must be set for this script to work.\n\nDid you forget to source a /etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2
|
printf "%s must be set for this script to work.\n\nDid you forget to source a $INSTALL_PREFIX/etc/restic/*.env.sh profile in the current shell before executing this script?\n" "$varname" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user