Add initial infrastructure and backup scripts for Gitea and homelab deployment
- Create README.md with project layout and quick start instructions - Implement backup scripts for Gitea, including database and repository exports - Add systemd service and timer for automated Gitea backups - Develop bootstrap scripts for homelab and VPS setup - Document architecture and restore procedures - Configure Caddy reverse proxy and Docker Compose for service management - Establish secrets management guidelines
This commit is contained in:
14
backups/scripts/restore-gitea.md
Normal file
14
backups/scripts/restore-gitea.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Gitea Restore (Postgres)
|
||||
|
||||
1. Stop gitea stack:
|
||||
- `cd /srv/ops/stacks/gitea && docker compose down`
|
||||
2. Restore filesystem data to:
|
||||
- `/srv/data/gitea`
|
||||
- `/srv/data/gitea-postgres` (or restore logical SQL below)
|
||||
3. Start only database:
|
||||
- `cd /srv/ops/stacks/gitea && docker compose up -d gitea-db`
|
||||
4. Import SQL dump (if using logical dump):
|
||||
- `cat /srv/backups/gitea/pg/<dump>.sql | docker exec -i gitea-db psql -U gitea -d gitea`
|
||||
5. Start gitea:
|
||||
- `docker compose up -d gitea`
|
||||
6. Validate web + SSH endpoints.
|
||||
Reference in New Issue
Block a user