This chapter describes how to back up the database.
Backup methods
The following backup methods enable you to recover data to a backup point or to the state immediately preceding disk physical breakdown or data logical failure.
Backup using WebAdmin
This method enables you to back up data through intuitive window operations using the GUI.
WebAdmin is used for recovery.
Backup using the pgx_dmpall command
Execute the pgx_dmpall command with a script to perform automatic backup.
To back up data automatically, you must register the process in the automation software of the operating system. Follow the procedure given in the documentation for your operating system.
The pgx_rcvall command is used for recovery.
The formula for deriving the approximate backup time when you use WebAdmin or the pgx_dmpall command is as follows:
backupTime = dataStorageDestinationUsage / diskWritePerformance x 1.5
dataStorageDestinationUsage: Disk usage at the data storage destination
diskWritePerformance: Maximum data volume (bytes/second) that can be written per second in the system environment where operation is performed
1.5: Coefficient to factor in tasks other than disk write (which is the most time-consuming step)
Note
Use the selected backup method continuously.
There are several differences, such as the data format, across the backup methods. For this reason, the following restrictions apply:
It is not possible to use one method for backup and another for recovery.
It is not possible to convert one type of backup data to a different type of backup data.
There are several considerations for the backup of the keystore and backup of the database in case the data stored in the database is encrypted. Refer to the following for details:
If you have defined a tablespace, back it up. If you do not back it up, directories for the tablespace are not created during recovery, which may cause the recovery to fail. If the recovery fails, refer to the event log, create the tablespace, and then perform the recovery process again.
If performing backups with WebAdmin, the following password file is temporarily created during backup for WebAdmin to connect to the database:
userProfileFolder\localSettingsFolder\Fujitsu\symfo_version\instanceName\pgpass.conf
Therefore, when you are backing up corefiles created in the core_directory parameter of postgresql.conf, or log files created in the log_directory parameter of postgresql.conf, ensure not to back up the password files located in the same directories at the same time.
Information
The following methods can also be used to perform backup. Performing a backup using these methods allows you to restore to the point when the backup was performed.
Backup using an SQL-based dump
Dump the data by using SQL. This backup method also enables data migration.
File system level backup
This backup method requires you to stop the instance and use OS commands to backup database resources as files.
Backup by continuous archiving
This is the standard backup method for PostgreSQL.
Refer to "Backup and Restore" in "Server Administration" in the PostgreSQL Documentation for information on these backup methods.