Backup the database using the following command: pg_dump -U zabbix -F c zabbix > zabbix.dump Restore the database using the following command: pg_restore -U zabbix -d <dbname> ctfdb.dmp The following commands are for zabbix database migration: pg_dump -U zabbix -h localhost -p 5432 -F c -f /root/zabbix.dump zabbix pg_restore -U zabbix -d zabbix zabbix.dump