Check all configurations for failed backups

Fixes #27.
This commit is contained in:
James Barnett
2017-01-31 20:32:19 -06:00
parent d94985a1d9
commit a15ad6c820

View File

@@ -192,8 +192,8 @@ done
# Actual backing up
for x in $selected_configs; do
if [[ "$(sudo snapper -c root list -t single | awk '/'$name' backup in progress/ {cnt++} END {print cnt}')" -gt 0 ]]; then
printf "Note: Previous failed $name backup snapshots found for '$x'.\n" | tee $PIPE
if [[ "$(sudo snapper -c $x list -t single | awk '/'$name' backup in progress/ {cnt++} END {print cnt}')" -gt 0 ]]; then
printf "\nNOTE: Previous failed $name backup snapshots found for '$x'.\n" | tee $PIPE
fi
SNAP_SYNC_EXCLUDE=no