1) Backup data with pg_dump
pg_dump -i -h localhost -p 5432 -U postgres -F c -b -v -f "/usr/local/backup/10.70.0.61.backup" old_db
To list all of the available options of pg_dump , please issue following command.
pg_dump -?
2) Restore data with pg_restore
pg_restore -i -h localhost -p 5432 -U postgres -d old_db -v "/usr/local/backup/10.70.0.61.backup"
To list all of the available options of pg_restore , please issue following command.
pg_restore -?
pg_dump.exe --host localhost --port 5432 --username "postgres" --no-password --format plain --section pre-data --section data --section post-data --encoding UTF8 --inserts --column-inserts --verbose --file "C:\Users\NIC\Desktop\office.sql" --table "public.c_offices" "secure20160804"
A slug is a short name using human-readable keywords to identify a web page. For…
[crayon-67a5b36eaa4db845761214/]
[crayon-67a5b36eaa6b1357202986/]
[crayon-67a5b36eaa949368812998/] [crayon-67a5b36eaa94d804847197/]