๐ Using PG_Dumpall to backup and restore the DBยถ
1. Using PG_Dumpall to backup and restore the DBยถ
- 1.1 create account information into the .pgpass in your Postgres Home directory
Format will be like IP:port:database:username:password
Add below information
- 1.2 Doing the backup for pg_dumpall
pg_dumpall -h 127.0.0.1 -U postgres -p 5438 -c --inserts -f /tmp/backup1_all.sql
ll /tmp/backup1_all.sql
SQL content will like this
- 1.3 Before restoring, we check the DB status
Delete the one table space and schema






