I have a Phoenix app. What's the best way to do daily pgsql db backups?
1) Cron and a simple, separate elixir script which uploads a backup to AWS?
2) Create an api endpoint in my api which will require "SECRET" header and call it from cron? My webapp then will upload a backup to AWS, that is, there'll be no separate elixir script.