Initial commit
This commit is contained in:
7
gitea/hooks/pre-backup.sh
Executable file
7
gitea/hooks/pre-backup.sh
Executable 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))"
|
||||
Reference in New Issue
Block a user