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