2.2. Initializing a Backup Catalog #
pg_probackup3 stores all WAL and backup files in the corresponding subdirectories of a backup catalog.
To initialize a backup catalog, run the following command:
pg_probackup3 init -B backup_dir
where backup_dir
is the path to the backup catalog. If backup_dir
already exists, it must be empty. Otherwise, pg_probackup3 returns an error.
pg_probackup3 creates the backup_dir
backup catalog, with the following subdirectories:
wal/
— directory for WAL files.backups/
— directory for backup files.
Once a backup catalog is initialized, you can add a new backup instance.