Collects database URLs of an Heroku app to an AWS SQS queue.
- Run
heroku labs:enable runtime-dyno-metadata
- Add to Heroku Scheduler:
curl https://raw.githubusercontent.com/frc/heroku-database-backup-info-collector/v1.0/collect.sh|bash -s -- <region> <sqs_url> <days>
where
<region>
is the AWS region for an SQS queue, likeeu-central-1
<sqs_url>
is the SQS queue URL, likehttps://sqs.eu-central-1.amazonaws.com/123/queuename
<days>
is the number(s) of weekday(s) you want the script to send the message.1
=Monday,2
=Tue,3
=Wed,4
=Thu,5
=Fri,6
=Sat,7
=Sun.123
=Monday+Tuesday+Wednesday,67
=Saturday and Sunday.