воскресенье, 19 апреля 2020 г.

pg_probackup скачать пакеты

pg_probackup

cp ~/setup-1c/dist/pg-probackup-11_2.2.7-1.00ea17704820f413.bionic_amd64.deb /tmp/post
cd /tmp/post
sudo dpkg -i pg-probackup-11_2.2.7-1.00ea17704820f413.bionic_amd64.deb
sudo pg_probackup-11 init -B /backup
sudo mkdir /backup/copy
sudo mkdir /backup/log
sudo mkdir /backup/pg_dump
sudo chown -R postgres:postgres /backup/
sudo pg_ctlcluster 11 main start
sudo -u postgres pg_probackup-11 add-instance -B /backup -D /var/lib/postgresql/11/main --instance main
sudo su postgres -c "echo 'retention-redundancy=5' >> /backup/backups/main/pg_probackup.conf"
sudo pg_ctlcluster 11 main status
ss -tunpl | grep 5432
ps aux | grep postgres | grep -- -D
sudo -u postgres pg_probackup-11 backup -B /backup --instance main -b FULL --stream --compress --delete-wal --expired -j 4
sudo -u postgres pg_probackup-11 show -B /backup

Комментариев нет:

Отправить комментарий