Updated repository to the new configuration.
This commit is contained in:
parent
25dde6a119
commit
1945f193ea
31 changed files with 766 additions and 866 deletions
23
bin/dump
Normal file
23
bin/dump
Normal file
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
command="/usr/bin/podman"
|
||||
|
||||
|
||||
# Dumps databases
|
||||
|
||||
postgres_databases=""
|
||||
|
||||
for database in $postgres_databases
|
||||
do
|
||||
$command exec -it ${database}-pod-postgres sh -c "pg_dumpall -U postgres | gzip > /dump/${database}.sql.gz"
|
||||
done
|
||||
|
||||
|
||||
# Exports volumes
|
||||
|
||||
volumes=""
|
||||
|
||||
for volume in $volumes
|
||||
do
|
||||
$command volume export $volume --output <home>/.volumes/${volume}.tar
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue