Repository format.
Migrate the stanza to the specified repository format. Migration applies to new backups and archives only, so backups and archives already in the repository are left at the format they were written with.
The first backup after a migration is a full backup even when a differential or incremental backup is requested, since no backup in the repository was written at the new format.
A passphrase already stored in the repository keeps deriving its key with SHA-1, since the files it encrypted are not rewritten by the migration. Only a new passphrase derives with SHA-256, i.e. the passphrase generated for each full backup written at the new format, or the passphrases of a stanza created at that format.
The following formats are supported:
-
5 - Format supported by all versions since 1.00
-
6 - Derives new repository encryption keys with SHA-256 rather than SHA-1
Once the info files have been migrated, a version of pgBackRest that does not support the new format is no longer able to read the stanza at all, including the parts of it that are still at the older format. The format cannot be downgraded.
On an encrypted repository such a version reports an error about the cipher rather than the format, since the header written from format 6 takes the place of the magic that an older version expects to find.
This option cannot be set in a configuration file but it can be set in the environment, where it applies to every stanza-upgrade run until it is removed.
CAUTION:
Set this option for the run that migrates the stanza. A format left in the environment migrates every stanza that is upgraded from that environment.
default: 5
example: --repo1-format=6