218
edits
Note: Currently new registrations are closed, if you want an account Contact us
(→Backup: update for postgresql 11) |
|||
Line 47: | Line 47: | ||
Backup server is provided by Manu (KVM virtual machine with 100 GB storage and 1 GB ram). Running on debian gnu/linux 10 buster. | Backup server is provided by Manu (KVM virtual machine with 100 GB storage and 1 GB ram). Running on debian gnu/linux 10 buster. | ||
Documentation: https://linuxhint.com/setup_postgresql_replication/ | Documentation: https://linuxhint.com/setup_postgresql_replication/ and https://www.percona.com/blog/2018/09/07/setting-up-streaming-replication-postgresql/ | ||
===Slave configuration: Step 1=== | ===Slave configuration: Step 1=== | ||
Line 134: | Line 134: | ||
# systemctl restart postgresql | # systemctl restart postgresql | ||
Open 5432 port in the firewall | Open 5432 port in the firewall | ||
Line 146: | Line 140: | ||
===Slave Configuration: Step 2=== | ===Slave Configuration: Step 2=== | ||
Copy data from master and create recovery.conf | |||
$ pg_basebackup -h git.fosscommunity.in -D /var/lib/postgresql/11/main/ -P -U rep --wal-method=fetch -R | |||
Start the slave server | Start the slave server |