Skip to content

Add set -e to backups.sh so failures propagate#120

Merged
thavelick merged 1 commit intomainfrom
fix_backup_exit_codes
Feb 21, 2026
Merged

Add set -e to backups.sh so failures propagate#120
thavelick merged 1 commit intomainfrom
fix_backup_exit_codes

Conversation

@thavelick
Copy link
Owner

Summary

  • Adds set -e to backups.sh so the script exits non-zero if borg or either rclone command fails
  • Prevents silent continuation when e.g. sudo credentials expire mid-backup

Test plan

  • Run backups.sh with a command that fails partway through and confirm it exits non-zero
  • Verify make lint passes

🤖 Generated with Claude Code

If borg or rclone fails (e.g. sudo timeout), the script now exits
non-zero instead of silently continuing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@thavelick thavelick merged commit d624467 into main Feb 21, 2026
3 checks passed
@thavelick thavelick deleted the fix_backup_exit_codes branch February 21, 2026 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant