yage
e199e9bf91
===================================================================== --- Changes ------------------------------ - AWS (the cli wrapper) now checks for it's required variables *on run*. This accomodates scwrypts which may need to run in multiple regions, but make the downstream scwrypt responsible for adding AWS_REGION to the REQUIRED_ENV list! - Got rid of all kinds of hackiness surrounding postgres password evals between both the postgres library and the rds library --- Bug Fixes ---------------------------- - scwrypts --update now pulls tags for proper versioning
20 lines
381 B
Bash
Executable File
20 lines
381 B
Bash
Executable File
#!/bin/zsh
|
|
DEPENDENCIES+=()
|
|
REQUIRED_ENV+=()
|
|
|
|
use cloud/aws/rds
|
|
use db/postgres
|
|
|
|
CHECK_ENVIRONMENT
|
|
#####################################################################
|
|
|
|
CREATE_BACKUP() {
|
|
local DB_HOST DB_PORT DB_NAME DB_USER DB_PASS
|
|
RDS__GET_DATABASE_CREDENTIALS $@ || return 1
|
|
|
|
PG_DUMP
|
|
}
|
|
|
|
#####################################################################
|
|
CREATE_BACKUP $@
|