1
0

add timetracker backup/restore scripts

This commit is contained in:
2026-01-16 11:49:16 +01:00
parent 18d3fdd67f
commit eb8771cb5d
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/bash
BACKUPDIR="backups"
[ -z "${1:-}" ] && echo "No file specified, exitting." && exit 1
set -euxo pipefail
docker compose exec timetracker poetry run python manage.py loaddata ${BACKUPDIR}/${1}