Alibabacloud.com offers a wide variety of articles about postgres restore backup command line, easily find your postgres restore backup command line information here online.
BackgroundPostgreSQL logical backup, refers to online backup database data, DDL output as SQL statements, data can be in the form of SQL statements or fixed separators (row format) output.
The backup does not affect the DML operation of the Backup
Backup and restore are most important when you are transporting a database. Today, we tested backup and restore using Pg_dumpall.
Backup Restore method: Pg_dump and Pg_restore, first carefully explain these two commands
Back up the database,
Seven, Pg_dump:
Pg_dump is a tool for backing up the PostgreSQL database. It can even make a full, consistent backup when the database is being used concurrently, without blocking access to the database by other users. The dump format generated by
PostgreSQL Learning Notes (v) Backup and recovery1. Backup tools: Pg_dump and Pg_dumpallThe pg_dump can back up a specified databasePg_dumpall can back up all database data and system global data at once2. The Pg_dump and Pg_dumpall tools do not
A sample that can jump directly to the last face to view Really did not think, has been the user of PostgreSQL, suddenly need a library transplant has become the first trick! Originally it was quite different from the MySQL command line
Really did not think, has been the user of PostgreSQL, suddenly need a library transplant has become the first trick! Originally it was quite different from the MySQL command line operation.Don't be afraid, but be careful, because database operation
Pg_dump implements automatic backup under the command line
This project uses the pg_dump.exe tool to back up the PostgreSQL database. The previous command is as follows:
Pg_dump -- Host localhost -- Port 5432 -- username
"S" -- format custom --
PostgreSQL provides three backup and recovery methods: SQL dump, file system replication, and online hot backup. Each backup method has its own advantages and disadvantages, which will be described in detail below.
9.1 SQL dumpThis backup method
Pg_dump and Pg_restore to back up and restore data from the database.Original: https://ksearch.wordpress.com/2012/09/28/how-to-backup-a-remote-postgresql-db-and-restore-it-locally/--------------------------------------This article lists the commands
I. Tool BACKUP DataOpen a command window under Windows: Start the directory with the->cmd-> installation database and enter the bin directory;Export command: pg_dump–h localhost–u postgres–p 5432–d postgres–f "D:/test.dmp"-H: Server address;-P: Port
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.