Add deploy script, backup script and crontab for the server

- deploy/uiogaming-deploy: forced command for github_deploy's SSH key. Pulls the repo and rebuilds one service from /srv/uiogaming/docker-compose.yml, fixing deploys that failed on container-name conflicts.
- backup/backup_db.sh: nightly pg_dumpall of all databases, gzipped, 14-day retention.
- cron/uiogaming.crontab: the uiogaming user's crontab.
- Document the new deploy setup and the move to /srv/uiogaming.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
leanderandClaude Opus 5.5 committed 2026-11-02 22:47:28 +01:00
1 parent 0901acd52a
commit d8aadb93c8
4 files changed
+91 -15

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# Crontab for the uiogaming user on the server.
# Install (replaces the whole crontab!): crontab cron/uiogaming.crontab
# Show what's installed: crontab -l
# Nightly backup of all Postgres databases (see ../backup/backup_db.sh).
# The rsync user pulls /srv/uiogaming/.backups off-site at 03:00, so this must finish before then.
0 2 * * * /srv/uiogaming/.backups/backup_db.sh >> /srv/uiogaming/.backups/logs/backup.log 2>&1