This tool, postgres-backup, save backups of all databases, located on current PostgreSQL server
to the /srv/postgres-backup/YYYY-MM-DD-HHMMS-postgres-backup directory.
Important
invoke module required
cd /opt ; git clone https://github.com/makhomed/postgres-backup.git
cd /opt/postgres-backup ; git pull
/opt/postgres-backup/postgres-backup
# cat /etc/cron.d/postgres-backup
0 0 * * * root /opt/postgres-backup/postgres-backup