pg_receivewal
streams WAL from server to archive
TLDR
Receive WAL to directory
$ pg_receivewal -D [wal_dir] -h [host]
Receive with slot$ pg_receivewal -D [wal_dir] -S [slot_name]
Receive with compression$ pg_receivewal -D [wal_dir] -Z [level]
SYNOPSIS
pg_receivewal [options]
DESCRIPTION
pg_receivewal streams WAL from server to archive. Creates continuous WAL archive for point-in-time recovery. Alternative to archive_command for WAL archiving.
PARAMETERS
-D, --directory dir
WAL destination.-h, --host host
Server hostname.-S, --slot name
Replication slot.-Z, --compress level
Compression level.--create-slot
Create replication slot.--synchronous
Flush WAL synchronously.
SEE ALSO
pg_basebackup(1), pg_archivecleanup(1)
