Sobes.tech
Middle

Have you worked with PgBarman or PgBackRest? Share your backup experience.

sobes.tech AI

Answer from AI

PgBarman and PgBackRest are tools for backing up and restoring PostgreSQL.

Experience with them includes:

  • Setting up regular backups (full and incremental).
  • Automating the backup process using cron or built-in schedulers.
  • Managing backup storage, including deleting old backups and integrity checks.
  • Restoring the database from backups in case of failures or data loss.

For example, with PgBackRest, you can configure a configuration file, specify backup directories and compression settings, and then run a backup with the command:

pgbackrest --stanza=mydb backup

It is important to regularly test restoration to ensure that backups are usable for recovery.