kbaum / heroku-database-backups

Heroku database backups and copies to S3
MIT License
99 stars 82 forks source link

using aws cli v2 to add support for heroku-20 #28

Closed richardbrockie closed 3 years ago

richardbrockie commented 3 years ago

I've made several tweaks for my use-case - cherry-pick as you see fit!

  1. Moved to aws cli v2 - now works with both heroku-18 and heroku-20 stacks 👍 - this would close #27
  2. I use heroku's scheduled backups for one database - this script is useful to archive the latest backup to S3 - added the ONLY_CAPTURE_TO_S3 flag to avoid capturing the database again - example usage in the README.md
  3. I tweaked the file format to include the TZ and use underscores between some parts which I find more readable
philgyford commented 3 years ago

Any chance of having this merged in? Or else a similar fix for the heroku-20 issue? 🙏 Thank you.

kbaum commented 3 years ago

This looks great. Sorry took so long to respond. Merging in.

philgyford commented 3 years ago

Great, thank you! I really appreciate this repo, so thanks for keeping it going.