You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
woodbine.nyc/services/backup/backup-databases

15 lines
517 B

read B2_APPLICATION_KEY_ID < /run/secrets/B2_APPLICATION_KEY_ID
read B2_APPLICATION_KEY < /run/secrets/B2_APPLICATION_KEY
read BUCKET_NAME < /run/secrets/BUCKET_NAME
export DST=b2://${B2_APPLICATION_KEY_ID}:${B2_APPLICATION_KEY}@${BUCKET_NAME}
read PASSPHRASE < /run/secrets/PASSPHRASE
export PASSPHRASE
for environment in /backup/*; do
. $environment
export PGHOST PGPASSWORD PGUSER DBS_TO_INCLUDE DBS_TO_EXCLUDE
/usr/local/bin/entrypoint
unset PGHOST PGPASSWORD PGUSER DBS_TO_INCLUDE DBS_TO_EXCLUDE
done