23 lines
509 B
Plaintext
23 lines
509 B
Plaintext
|
#!/bin/zsh
|
||
|
_DEPENDENCIES+=()
|
||
|
_REQUIRED_ENV+=()
|
||
|
source ${0:a:h}/common.zsh
|
||
|
#####################################################################
|
||
|
|
||
|
RDS_INTERACTIVE_LOGIN() {
|
||
|
local DB_HOST DB_PORT DB_NAME DB_USER DB_PASS
|
||
|
GET_DATABASE_CREDENTIALS $@ || return 1
|
||
|
|
||
|
__RUN_SCWRYPT 'zsh/db/postgres/pg_dump' -- \
|
||
|
--host $DB_HOST \
|
||
|
--port $DB_PORT \
|
||
|
--name $DB_NAME \
|
||
|
--user $DB_USER \
|
||
|
--pass $DB_PASS \
|
||
|
;
|
||
|
}
|
||
|
|
||
|
|
||
|
#####################################################################
|
||
|
RDS_INTERACTIVE_LOGIN $@
|