February 2020
Intermediate to advanced
734 pages
38h 13m
English
The first thing we need to do is to secure the WAL stream. Follow these steps to build a semi-permanent copy of archived WAL data in the /db/wal_archive directory:
archive_command = 'cp -an %p /db/wal_archive/%f'
sudo mkdir -p -m 0700 /db/wal_archive sudo chown -R postgres /db/wal_archive
pg_ctl -D /path/to/database reload
find /db/wal_archive -name '0000*' \ -type ...
Read now
Unlock full access