-
Notifications
You must be signed in to change notification settings - Fork 0
Moving data from csss‐site db to csss‐site‐backend
Gabe edited this page Dec 31, 2024
·
4 revisions
That's the database for https://github.com/CSSS/csss-site
This will be important for running pg_dump remotely. For example, you can access the postgres database remotely by doing psql -U postgres -p 5432 -h sfucsss.org
.
The main database running csss-site is called postgres
and owned by the postgres user. We can use the command pg_dump -U postgres -h sfucsss.org -p 5432 -d postgres -f csss_site_db_bak.sql
to create a dump.
export DB_PASSWORD="my very fancy password";
# the test db if you've configured docker this way
export DB_TARGET="postgresql+asyncpg://localhost:5444/test";
python migrate_from_about_officers.py
unset DB_PASSWORD;
unset DB_TARGET;