various changes
This commit is contained in:
parent
0198eba737
commit
346818748c
3 changed files with 17 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -36,4 +36,6 @@
|
|||
# /var/zio-backup/
|
||||
!/var/zio-backup/
|
||||
/var/zio-backup/*
|
||||
!/var/zio-backup/*.*
|
||||
!/var/zio-backup/passwd
|
||||
/var/zio-backup/*.*~
|
||||
|
|
13
var/zio-backup/de01.pre
Normal file
13
var/zio-backup/de01.pre
Normal 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
|
2
var/zio-backup/de01.var
Normal file
2
var/zio-backup/de01.var
Normal file
|
@ -0,0 +1,2 @@
|
|||
PATHS="/etc;/srv/store;/var"
|
||||
SERVICES="container-photoprism"
|
Loading…
Add table
Add a link
Reference in a new issue