bin: update
This commit is contained in:
parent
0cc125394f
commit
a93593061c
5 changed files with 35 additions and 3 deletions
4
bin/dump
Normal file → Executable file
4
bin/dump
Normal file → Executable file
|
@ -2,7 +2,6 @@
|
|||
|
||||
command="/usr/bin/podman"
|
||||
|
||||
|
||||
# Dumps databases
|
||||
|
||||
postgres_databases=""
|
||||
|
@ -12,12 +11,11 @@ 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
|
||||
$command volume export $volume --output /home/neutrino/.volumes/${volume}.tar
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue