functional data dir
This commit is contained in:
parent
f6dc4b4d8c
commit
ed085222f0
1 changed files with 2 additions and 2 deletions
|
|
@ -298,8 +298,8 @@ function postgres_vacuum_self {
|
|||
# reusable step to backup databases - postgres_backup [postgres-db-1] [user_and_db_name] [output_name] [$backup_working_directory]
|
||||
function postgres_backup {
|
||||
# for some reason, doing a dump *doesn't* require a password apparently. huh
|
||||
docker exec "$1" /bin/bash -c "pg_dump "$2" --username "$2" > /exp/"$3".sql"
|
||||
mv /srv/postgres/exp/$3.sql $4/$3/$3.sql # hardcoded value should be fine but maybe make this dynamic?
|
||||
docker exec "$1" /bin/bash -c "pg_dump "$2" --username "$2" > /mnt/exp/"$3".sql"
|
||||
mv /srv/docker/postgres/exp/$3.sql $4/$3/$3.sql # hardcoded value should be fine but maybe make this dynamic?
|
||||
}
|
||||
|
||||
# redis snapshot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue