Initial commit

This commit is contained in:
2026-02-15 15:16:36 +01:00
commit 7c1a67be4e
12 changed files with 207 additions and 0 deletions

7
gitea/hooks/pre-backup.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
echo "==> [gitea] Creating SQLite backup"
mkdir -p /mnt/staging
sqlite3 /mnt/source/data/gitea/gitea.db ".backup /mnt/staging/gitea.db"
echo "==> [gitea] SQLite backup complete ($(du -h /mnt/staging/gitea.db | cut -f1))"