Add daily automatic database backup to GitHub

- Remove data/ from .gitignore (keep WAL/SHM excluded)
- Add backup.sh script: commits and pushes DB changes daily
- Cron job at 3:00 AM: /var/www/html/dispensa/backup.sh
- Include initial database snapshot
This commit is contained in:
dadaloop82
2026-03-10 12:38:20 +00:00
parent c6c000bbc2
commit 24dd88b5cf
3 changed files with 21 additions and 2 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
# Environment variables (secrets)
.env
# SQLite database
data/
# SQLite WAL/SHM temp files
data/*.db-wal
data/*.db-shm
# SSL CA cert (local only)
ca.crt