A bash script that backups and uploads a PostgreSQL database to dropbox
Download the script:
curl https://raw.githubusercontent.com/stsourlidakis/postgreSQL-dropbox-backup/master/backup.sh  -o backup.shReplace the token variable with your Dropbox access token, you can get it by creating a new app here.
Replace the database variable with your database's name
Make the script executable:
chmod +x backup.shThen add it to crontab or run it with:
./backup.sh