How to enable archiving(wal) in postgres
STEPS FOR enabling archiving:
postgresql configurationintermediate
by PostgreSQL
14 views
STEPS FOR enabling archiving:
12345678
mkdir -p /Library/PostgreSQL/10/data/archive/
wal_level = replica
archive_mode = on
max_wal_senders=1
archive_command= 'test ! -f /Library/PostgreSQL/10/data/archive/%f && cp %p /Library/PostgreSQL/10/data/archive/%f'
export PGDATA=/Library/PostgreSQL/10/data
pg_ctl stop
pg_ctl startPlease to add comments
No comments yet. Be the first to comment!