22 Ağustos 2023 Salı

pgBackRest - Yedekleme (Backup) İçindir

Giriş
Açıklaması şöyle
pgBackRest is a modern PostgreSQL Backup & Restore solution that has all the features you may ever need:

- Parallel backup and restore.
- Full, differential, and incremental backups.
- Delta restore.
- ZSTD compression.
- Encryption.
- And many more.

Full backup
Örnek
Şöyle yaparız
sudo -u postgres pgbackrest --type=full --stanza=demo backup
Differential backup
Açıklaması şöyle
Differential backup only copies files that have changed since the last full backup. It is smaller than a full backup, but to restore it you will need the base full backup.
Örnek
Şöyle yaparız
sudo -u postgres pgbackrest --type=diff --stanza=demo backup
Incremental backup
Açıklaması şöyle
Incremental backup only copies files that have changed since the last backup (full, differential, or incremental). It is smaller than a full or differential backup, but to restore it you will need all dependant backups.
Örnek
Şöyle yaparız
sudo -u postgres pgbackrest --type=incr --stanza=demo backup
Backup restore
Örnek
Şöyle yaparız
# To restore the cluster from the last backup:
sudo -u postgres pgbackrest --stanza=demo --delta restore

# To view all available backups:
sudo -u postgres pgbackrest --stanza=demo info

Hiç yorum yok:

Yorum Gönder