Skip to main content

PostgreSQL

Backup Database​

pg_dump --host=90.90.90.90 --port=5432 --dbname=pondokmbodo --username=pondokmbodo --verbose --format=plain --file=pondokmbodo_backup.sql --password
pg_dump -h 90.90.90.90 -U pondokmbodo -d pondokmbodo -F c -b -v -f mydatabase.backup

Restore Database​

psql --host=90.90.90.90 --port=5432 --dbname=pondokmbodo_restore --username=pondokmbodo --file=pondokmbodo_backup.sql --password
pg_restore -h 90.90.90.90 -U pondokmbodo -d pondokmbodo_restore -v mydatabase.backup