Skip to content

Promote restic auth-failure handling to production - #82

Merged
nikchester merged 2 commits into
mainfrom
dev
Nov 6, 2026
Merged

nikchester merged 2 commits into
mainfrom
dev

Conversation

@nikchester

Copy link
Copy Markdown
Owner

Promotion

Promotes reviewed PR #81 after validate, secret-scan, and integration all passed on 4ce7d89.

Scope reviewed

main...dev contains exactly the five paths of #81: scripts/backup.sh, test/local/bin/restic, test/local/tests/test-backup-restore.sh, docs/BACKUP_RESTORE.md, docs/SECRETS.md. No plugin or datapack changes.

Deployment

YANDEX_RCLONE_CONFIG already holds the new published-client Google Drive config (updated 2026-11-06 14:20 UTC), so the deploy installs a working rclone.conf.

Closes #80

nikchester and others added 2 commits November 6, 2026 18:21
Production backups stopped on 2026-11-04 because Google expired the rclone
OAuth refresh token (consent screen in Testing status, 7-day token life).
backup.sh misread the resulting restic failure as "repository not
initialized", ran a doomed restic init and alerted without the cause.

- Run restic init only on exit code 10 (repository does not exist).
- Fail with a Telegram hint on invalid_grant, or the exit code otherwise.
- Regression test via a RESTIC_SHIM_INVALID_GRANT restic shim.
- Runbook for re-authorizing Google Drive and the new published
  minecraft-backup-rclone OAuth project.

Closes #80
fix: stop treating restic auth failures as an uninitialized repository
@nikchester nikchester added the skip-changelog Exclude bookkeeping-only pull requests from generated release notes and version calculation. label Nov 6, 2026
@nikchester
nikchester merged commit 812d1a2 into main Nov 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Exclude bookkeeping-only pull requests from generated release notes and version calculation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Бэкапы не создаются: OAuth-токен Google Drive истёк (invalid_grant)

1 participant