Backup Server Dialog¶
Use the Backup Server dialog to create a plain-text script that will recreate the selected server. You can use the PEM Query Tool to play back a plain-text script, and recreate the server.
Backup Server dialog - General tab¶
Use the fields in the General tab to specify the following:
Enter the name of the backup file in the
Filenamefield. Optionally, select theBrowsericon (ellipsis) to the right to navigate into a directory and select a file that will contain the archive.Use the
Encodingdrop-down listbox to select the character encoding method that should be used for the archive. Note: This option is visible only for database server greater than or equal to 11.Use the drop-down listbox next to
Role nameto specify a role with connection privileges on the selected server. The role will be used for authentication during the backup.
Backup Server dialog - Dump Options tab - Types of Objects¶
Move switches in the Type of objects field box to specify details about the type of objects that will be backed up.
Move the switch next to
Only datato theYesposition to limit the back up to data.Move the switch next to
Only schemato limit the back up to schema-level database objects.
Backup Server dialog - Dump Options tab - Do not save options¶
Move switches in the Do not save field box to select the objects that will not be included in the backup.
Move the switch next to
Ownerto theYesposition to exclude commands that set object ownership.Move the switch next to
Privilegeto theYesposition to exclude commands that create access privileges.Move the switch next to
Tablespaceto theYesposition to exclude tablespaces.Move the switch next to
Unlogged table datato theYesposition to exclude the contents of unlogged tables.Move the switch next to
Commentsto theYesposition to exclude commands that set the comments. Note: This option is visible only for database server greater than or equal to 11.
Backup Server dialog - Dump Options - Queries options¶
Move switches in the Queries field box to specify the type of statements that should be included in the backup.
Move the switch next to
Use Column Insertsto theYesposition to dump the data in the form of INSERT statements and include explicit column names. Please note: this may make restoration from backup slow.Move the switch next to
Use Insert commandsto theYesposition to dump the data in the form of INSERT statements rather than using a COPY command. Please note: this may make restoration from backup slow.Move the switch next to
Include DROP DATABASE statementto theYesposition to include a command in the backup that will drop any existing database object with the same name before recreating the object during a backup.
Backup Server dialog - Dump Options tab - Disable options¶
Move switches in the Disable field box to specify the type of statements that should be excluded from the backup.
Move the switch next to
Trigger(active when creating a data-only backup) to theYesposition to include commands that will disable triggers on the target table while the data is being loaded.Move the switch next to
$ quotingto theYesposition to enable dollar quoting within function bodies; if disabled, the function body will be quoted using SQL standard string syntax.
Backup Server dialog - Dump Options tab - Miscellaneous options¶
Move switches in the Miscellaneous field box to specify miscellaneous backup options.
Move the switch next to
With OIDsto theYesposition to include object identifiers as part of the table data for each table.Move the switch next to
Verbose messagesto theNoposition to instructpg_dumpto exclude verbose messages.Move the switch next to
Force double quotes on identifiersto theYesposition to force the quoting of all identifiers.Move the switch next to
Use SET SESSION AUTHORIZATIONto theYesposition to include a statement that will use a SET SESSION AUTHORIZATION command to determine object ownership (instead of an ALTER OWNER command).
Click the Backup button to build and execute a command based on your selections; click the Cancel button to exit without saving work.
Backup Server dialog - Success Notification popup¶
Use the Stop Process button to stop the Backup process.
If the backup is successful, a popup window will confirm success. Click Click here for details on the popup window to launch the Process Watcher. The Process Watcher logs all the activity associated with the backup and provides additional information for troubleshooting.
Backup Server dialog - Process Watcher¶
If the backup is unsuccessful, review the error message returned by the Process Watcher to resolve any issue.
Note
You can click on the
icon in the process watcher window to open the file location in the Storage Manager. You can use the Storage Manager to download the backup file on the client machine .
Note:
If
ENABLE_DATA_ACCESS_TOOLSconfiguration option is set to False then Backup option is disabled.