2
0
Fork 0

various changes

main
Ducky 2022-02-23 05:44:21 +00:00
parent 0198eba737
commit 346818748c
3 changed files with 17 additions and 0 deletions

2
.gitignore vendored
View File

@ -36,4 +36,6 @@
# /var/zio-backup/
!/var/zio-backup/
/var/zio-backup/*
!/var/zio-backup/*.*
!/var/zio-backup/passwd
/var/zio-backup/*.*~

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

View File

@ -0,0 +1,2 @@
PATHS="/etc;/srv/store;/var"
SERVICES="container-photoprism"