From 3fbb47fc06ea0fad17c9be6b731b88b28b0a95f5 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Fri, 11 Nov 2022 20:47:21 +0000 Subject: [PATCH] changed readme --- .gitignore | 1 + db_backup.sh | 4 +++- db_restore.sh | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 4d5cf33..f52baa1 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ postgres build config soapbox.zip +script_config.sh db.sql diff --git a/db_backup.sh b/db_backup.sh index 40bb59c..00d86ce 100755 --- a/db_backup.sh +++ b/db_backup.sh @@ -1,3 +1,5 @@ #!/bin/bash -podman exec rebased-db pg_dump -U pleroma pleroma > db.sql +source ./script_config.sh + +podman exec rebased-db pg_dump -U $PG_USER $PG_NAME > db.sql diff --git a/db_restore.sh b/db_restore.sh index 4ce8ce9..56a2831 100755 --- a/db_restore.sh +++ b/db_restore.sh @@ -1,4 +1,6 @@ #!/bin/bash -podman exec rebased-db psql -U pleroma pleroma < db.sql +source ./script_config.sh + +podman exec rebased-db psql -U $PG_USER $PG_NAME < db.sql