Kaspersky Container Security

Backing up and restoring data

March 27, 2024

ID 265971

PostgreSQL mechanisms can be used for PostgreSQL database backup and data recovery. You can use these for the PostgreSQL database in Kaspersky Container Security or an existing PostgreSQL database you may have.

Database backup copies are created using the pg_dump utility. The backup copy includes all main settings and PostgreSQL database objects, even if the database is used in parallel. If you have a backup copy, you can quickly restore the database.

Without a backup copy, a malfunction may lead to an irrecoverable loss of the information stored in the PostgreSQL database.

The pg_dump utility lets you export a PostgreSQL database as a script or in an archive format such as .TAR.

Example of using the pg_dump utility

To restore a PostgreSQL database from a backup copy, you can use the pg_restore utility. This allows you to restore a PostgreSQL database from an archive file created by the pg_dump utility. The pg_restore utility executes commands that restore the database to the state that existed when the database was saved.

Example of using the pg_restore utility

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.