Database Backup (PostgreSQL)
Go Up to Database Backup
This wizard lets you generate a pg_dump script, backing up one or more tables or views of a database.
To create a database backup
- Connect to the datasource where the database to be backed up is located and ensure that it is the selected datasource. For details, see Connected/Selected Datasource options.
- Select Utilities > Database Backup to open the Backup wizard.
- Use the following table as a guide to performing tasks as you pass through the wizard panels before clicking Finish:
| Panel | Option | Description |
|---|---|---|
|
Playback |
New Backup Operation |
Select to define a new backup operation. |
|
Previous Backup Operation |
Lets you specify the specific datasource and database where the tables and views to be backed up are located. | |
|
Datasource and Output Options |
What are the datasource and database |
Lets you specify the specific datasource and database where the tables and views to be backed up are located. |
|
Specify the format for the data file(s) to be generated |
Lets you specify a -F (--format) output format option of Custom (custom-format archive suitable for input into Database Restore utility), Plain text (plain-text SQL script file), Directory (directory-format archive suitable for input into Database Restore utility), or Tar (TAR-format archive suitable for input into Database Restore utility). | |
|
Compress ratio |
Unavailable if the Tar output format is selected. Lets you provide a -Z option value of 0-9, specifying a pg_dump compression level. | |
|
Encoding |
Lets you provide a -E option value, specifying the character set encoding of the dump file. | |
|
Rolename |
Lets you provide a --role option value, instructing pg_dump to issue a SET ROLE command on connection to the database. | |
|
Files |
Specify a path for the output file to be generated and Specify a path for the message file to be generated |
These settings let you specify the paths for the output and message files as well as the optional file that lets you reuse the current backup operation. |
|
Options |
Sections |
Lets you provide one or more --section option values ( Pre-data. Data, Post-data) specifying that the selected sections are dumped. |
|
Type of Objects |
| |
|
Do not save |
| |
|
Queries |
| |
|
Disable |
| |
|
Miscellaneous |
| |
|
Tables |
Select the tables and/or views to be exported |
Lets you select the tables that are to be dumped. |
|
Summary |
Provides a short summary of the dump operation options. |
You can use the generated script in a subsequent restore operation. For details, see Database Restore (PostgreSQL).