2
0
Fork 0

various changes

This commit is contained in:
Ducky 2022-02-23 05:48:38 +00:00
parent 5918c5884c
commit f7b679d2a1
3 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,13 @@
#!/bin/bash
$sql_dump_dir="/srv/store/common/sql"
$postgres_dump_file="/srv/common/sql/postgres_$(host).sql"
$postgres_password="5H4bsfAVXGFQFYfpPzDtcYpUXB8vjQUT"
mkdir -p $sql_dump_dir
say "Photoprism: Importing media..."
podman exec -it photoprism import
say "Postgres: Dumping database to '$postgres_dump_file'..."
podman exec -i -e PGPASSWORD=$postgres_password postgres /usr/local/bin/pg_dumpall -U postgres > $postgres_dump_file