wondering why you added the requirement to decrypt/encrypt the WAL if pgbackrest is used in the limitations documentation.
I remember it wasn’t there before.
We are currently using pgbackrest without encrypt/decrypt and it works fine. No problems with Restores or anything else. Is it just to make sure that the WAL Files could be used on a (non encrypted) standby or other external tool?
PgBackRest will still work if you are not using the WAL encryption option; however, if you want to apply it, then it must be configured as mentioned above. The underlying tool, PgBackRest itself, doesn’t need to know about the encryption or decryption mechanism. The tool will simply recognise the WALs once they are decrypted by the pg_tde process.
Offhand, it sounds like there’s a bit of communication confusion. The issue about tde is pgbackrest being able to understand the WAL when it’s encrypted. You may not have a problem by virtue of the manner your implementation.
If you think it’s worth your time, maybe you can describe the exact steps you are performing.
To restore, we use no additional options. For PITR this works: sudo -u postgres pgbackrest --stanza=main --type=time --target="2026-09-10 10:44:00+02" restore
For a complete restore: sudo -u postgres pgbackrest --stanza=main restore
Either removing all postgres data with sudo rm -rf /var/lib/postgresql/18/main/ or using the --delta option works.
During restore I do not modify the restore_command of pgbackrest, so it is the default restore_command = 'pgbackrest --stanza=main archive-get %f "%p"'
pg_tde_archive_decrypt and pg_tde_archive_encrypt are not used at all.
My questions is why the documentation tells you that you must use these commands.
This notice was not there when we first set up the system a few months ago, so something had to happen in the meantime that this is “forced” now.