Skip to content

Commit

Permalink
Check all configurations for failed backups
Browse files Browse the repository at this point in the history
Fixes #27.
  • Loading branch information
wesbarnett committed Feb 1, 2017
1 parent d94985a commit a15ad6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/snap-sync
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a15ad6c

Please sign in to comment.