This is a rough guide to automating a nightly 7-day rolling remote backup of your PostgreSQL database(s) for your dokku app(s). There is a slight difference if you are using an older version of Dokku.
This will save the comprssed output of pg_dump
as well as the contents
of the /home
directory on your dokku machine (just in case).
You will need to create a shell script in /root
and edit the cron file.