Files
scwrypts/zsh/cloud/aws/rds/load-backup
T

12 lines
233 B
Bash
Raw Normal View History

2022-08-01 15:53:40 -06:00
#!/bin/zsh
2023-02-21 18:44:27 -07:00
use cloud/aws/rds
use db/postgres
2022-08-01 15:53:40 -06:00
#####################################################################
2024-02-06 14:06:44 -07:00
MAIN() {
2022-08-01 15:53:40 -06:00
local DB_HOST DB_PORT DB_NAME DB_USER DB_PASS
2023-02-21 18:44:27 -07:00
RDS__GET_DATABASE_CREDENTIALS $@ || return 1
2022-08-01 15:53:40 -06:00
2023-08-24 17:09:30 -06:00
PG_RESTORE
2022-08-01 15:53:40 -06:00
}