From b8babfda32200928b2078202b84dcc3cc5b240c7 Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 6 Aug 2022 12:11:08 +1000 Subject: [PATCH] added note on how to dump out users.sql so we dont have to add those ppl each time we rebuild the DB from scratch -- should really do this as a once a day job or something! --- README | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README b/README index 01013cd..000c8b9 100644 --- a/README +++ b/README @@ -91,6 +91,10 @@ To get back a 'working' but scanned set of data: ( cd /srv/docker/config/ ; sudo docker-compose stop padb ; yes | sudo docker-compose rm padb ; sudo rm -rf /srv/docker/container/padb/data/ ; sudo docker-compose up -d padb ) + # export just person/refimg so we don't have to recreate them by hand between refreshes of DB + sudo docker exec -it padb bash + # pg_dump --user=pa -a -t person -t refimg -t person_refimg_link > /docker-entrypoint-initdb.d/users.sql + HANDY SQLs/commands: # long-running AI job (in this case #46), which is not committing joblog per file, and isnt tracking counts properly (temporary bug)