Skip to content
GitLab
Explore
Sign in
This is an archived project. Repository and other project resources are read-only.
degrowth
scriptorium
Wiki
backups
backups
· Changes
Page history
Update backups
authored
Jan 28, 2020
by
jon r
Hide whitespace changes
Inline
Side-by-side
backups.md
View page @
36a79567
...
...
@@ -3,6 +3,7 @@ We have successfully created backups.
When using
[
compose-scriptorium
](
https://lab.allmende.io/degrowth/compose-scriptorium
)
we like to use
docker-compose exec database sh -c 'pg_dumpall -U $POSTGRES_USER' > `date +"%Y-%m-%dT%H:%M:%S%z"`-`cd src && git rev-parse HEAD`-degrowth-scriptorium.sql
XZ_OPT=-9 tar cJf `date +"%Y-%m-%dT%H-%M-%S%z"`-`cd src && git rev-parse HEAD`-degrowth-scriptorium-state.tar.xz data assets
Locally
...
...