4 4 3:PostgreSQL Backup

From SEPsesam
Jump to: navigation, search
Other languages:
Deutsch • ‎English
Copyright © SEP AG 1999-2018. All rights reserved.

Any form of reproduction of the contents or parts of this manual is allowed only with the express written permission from SEP AG. When compiling and designing user documentation SEP AG uses great diligence and attempts to deliver accurate and correct information. However, SEP AG cannot issue a guarantee for the contents of this manual.

Docs latest icon.png Welcome to the latest SEP sesam documentation version 4.4.3/4.4.3 Grolar. For previous documentation version(s), check PostgreSQL archive.


The SEP sesam extension for PostgreSQL allows an uninterruptible backup of PostgreSQL databases. For details on PostgreSQL restore configuration, see PostgreSQL Restore.

Granting access to the database

In order for the SEP sesam PostgreSQL Backup module to work correctly, the root user must have access to the database instance.
On modern PostgreSQL setups access can be granted by using the following command:

root@database-system# su - postgres "-c createuser -s root"

This can be verified by listing the available databases on the command line:

root@database-system:~# psql -l

Backing up a PostgreSQL single database

Create a new backup task for the backup of the PostgreSQL server.

  1. From Main Selection -> Tasks -> By clients, select PostgreSQL client and click New backup task. The New backup task window opens.
  2. Specify the Source with the database name. By selecting the source, the task type and task name are set automatically.
  3. If required, enter the user name and password to access the database: click the tab Options and enter the following in the Save options field.
  4.   -a user=<DB User>,password=<Password DB Users>
  5. If you want to set encryption, consolidate individual tasks under a specific task group, or assign a task to the schedule click the corresponding tabs in the New backup task window. Note that other options are not available (pre/post backup and restore commands, compressing data).
  6. Click OK to create the task.

    PostgreSQL bck task.png

  7. If you want to start the newly created task immediately, right-click the name of the task and click Immediate start. If you want to schedule the task, click New schedule under Main Selection -> Scheduling -> Schedules. For details, see Creating a Schedule.
  8. Once you have configured a schedule, you must create a new backup event for it. Go to Main Selection -> Scheduling -> New Backup Event, click the Parameter tab and select one of the available backup levels. For more information on schedules and related events, see Schedules 4.4.
  9. A different port can be specified with -a port=<portnumber>, under the tab Options in the Save options field.

Known issues

If you have problems with PostgreSQL, check the Troubleshooting Guide.