pg_restorecluster
Restore from a pg_backupcluster backup
- Provided by: postgresql-common (Version: 238)
- Report a bug
Restore from a pg_backupcluster backup
pg_restorecluster [options] version cluster backup
pg_restorecluster restores a PostgreSQL cluster from a backup created by pg_backupcluster. The cluster will be newly created in the system using the name provided on the command line; this allows renaming a cluster on restore. The restored cluster configuration will be updated to reflect the new name and location.
The backup name passed must end in either .basebackup or .dump; usually this will be the full path to a backup directory in /var/backups/postgresql/version-cluster/ as reported by pg_backupcluster ... list.
Basebackups are restored as-is. For dumps, pg_createcluster is used to create a new cluster, and schema and data are restored via pg_restore.
After the cluster has been started, ANALYZE is run on all databases.
See pg_backupcluster(1) for a description of files.
Christoph Berg <myon@debian.org>