Add stage parameter for backup hooks and add immich_upload backup
This commit is contained in:
parent
4db5c1878b
commit
759368b6d6
8 changed files with 49 additions and 11 deletions
|
|
@ -2,6 +2,10 @@
|
|||
|
||||
cd "$1"
|
||||
|
||||
if [ "$2" != "before" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
postgres_tables=$(sudo -u postgres psql -Atc "SELECT datname FROM pg_database WHERE datistemplate = false;")
|
||||
|
||||
for i in $postgres_tables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue