From 4614225c2a078b9c656c9fee6eb1ba10867745c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Wed, 25 May 2022 13:42:04 +0200 Subject: [PATCH] Add information regarding json export to README files --- README.md | 1 + Utils/README.md | 1 + 2 files changed, 2 insertions(+) diff --git a/README.md b/README.md index 7e70a955..1bbbfdae 100644 --- a/README.md +++ b/README.md @@ -31,3 +31,4 @@ Afterwards, you may check your setup by executing ``Utils/check.sh`` or ``Utils/ ## Developer Notes * to regenerate translations use ````python manage.py makemessages -l de_DE --ignore venv```` * to create a data backup use ````python manage.py dumpdata --indent=2 > db.json --traceback```` +* to export all database items belonging to a certain event use ````.\Utils\json_export.sh <event_id> <export_prefix> [--prod]````. The results will be saved in ````backups/<export_prefix>.json```` diff --git a/Utils/README.md b/Utils/README.md index b601f952..d0205298 100644 --- a/Utils/README.md +++ b/Utils/README.md @@ -7,3 +7,4 @@ All scripts should be executed from the project folder (repository root). * **setup** installation script for development setup * **update** update script for development or production (--prod) setup * **check** setup checking script for development and production (--prod) setup +* **json_export** export script for development and production (--prod) -- can be used to export all database items belonging to a given event \ No newline at end of file -- GitLab