[claude] Add Gitea backup script (#990) #996

Merged
Rockachopa merged 1 commits from claude/issue-990 into main 2026-03-22 22:36:52 +00:00
Owner

Refs #990

Summary

  • Adds scripts/gitea_backup.sh — a version-controlled backup script for the Gitea instance
  • Runs gitea dump, verifies backup contents (DB, repos, config, app.ini), and optionally copies to off-site storage
  • Prints restore instructions after completion

Important Note

This is the script portion of the issue. The actual backup execution requires SSH access to the VPS (143.198.27.163). Someone with server access needs to run:

sudo bash scripts/gitea_backup.sh [optional-offsite-dest]

This must be done BEFORE any app.ini hardening changes (#988, #989).

Acceptance Criteria Status

  • Backup zip exists and is > 0 bytes — requires server execution
  • Backup is copied to off-site location — requires server execution
  • Script is version-controlled and ready to run
  • This is done BEFORE any app.ini changes — blocking #988, #989
Refs #990 ## Summary - Adds `scripts/gitea_backup.sh` — a version-controlled backup script for the Gitea instance - Runs `gitea dump`, verifies backup contents (DB, repos, config, app.ini), and optionally copies to off-site storage - Prints restore instructions after completion ## Important Note This is the **script** portion of the issue. The actual backup execution requires SSH access to the VPS (`143.198.27.163`). Someone with server access needs to run: ```bash sudo bash scripts/gitea_backup.sh [optional-offsite-dest] ``` **This must be done BEFORE any app.ini hardening changes (#988, #989).** ## Acceptance Criteria Status - [ ] Backup zip exists and is > 0 bytes — *requires server execution* - [ ] Backup is copied to off-site location — *requires server execution* - [x] Script is version-controlled and ready to run - [ ] This is done BEFORE any app.ini changes — *blocking #988, #989*
Rockachopa added 1 commit 2026-03-22 22:36:33 +00:00
chore: add Gitea backup script for pre-hardening snapshot
Some checks failed
Tests / lint (pull_request) Failing after 5s
Tests / test (pull_request) Has been skipped
7b5d47f1b8
Refs #990

Version-controlled backup script that:
- Runs gitea dump with proper config paths
- Verifies backup is non-empty and contains expected components
- Optionally copies to off-site storage via rsync
- Prints restore instructions

Note: This script must be run on the VPS with sudo access.
The actual backup execution requires server SSH access.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rockachopa merged commit 3ab180b8a7 into main 2026-03-22 22:36:52 +00:00
Rockachopa deleted branch claude/issue-990 2026-03-22 22:36:52 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#996