Install autopostgresqlbackup by entering the following commands in the terminal:
sudo apt update sudo apt install autopostgresqlbackup
Automated tool to make periodic backups of PostgreSQL databases
autopostgresqlbackup is a shell script (usually executed from a cron job) designed to provide a fully automated tool to make periodic backups of PostgreSQL databases. autopostgresqlbackup extract databases into flat files in a daily, weekly or monthly basis. . autopostgresqlbackup is a PostgreSQL port of automysqlbackup.