pg_receivewal
Stream the write-ahead log from a running PostgreSQL cluster. tldr-pages
On several platforms
Several platforms
Stream WAL to a local directory (minimum required)
pg_receivewal --directory directoryIdentifyStream WAL to a local directory, specifying host, port, and username, with verbose output
pg_receivewal --verbose --host host --port port --username username --directory directoryIdentifyUse replication slot (create-if-needed)
pg_receivewal --slot slot_name --create-slot --host host --port port --username username --directory directoryIdentifyStop at a given WAL position (LSN)
pg_receivewal --endpos lsn --directory directory --host host --port port --username usernameIdentifyControl looping on failure
pg_receivewal --no-loop --directory directory --host host --port port --username usernameIdentifyFlush data synchronously (force WAL writes immediately)
pg_receivewal --synchronous --directory directory --host host --port port --username usernameIdentifyCompress WAL output (gzip, level 0-9)
pg_receivewal --compress level --directory directory --host host --port port --username usernameIdentifySet status reporting interval
pg_receivewal --status-interval seconds --directory directory --host host --port port --username usernameIdentify