LinuxCommandLibrary

pg_receivewal

streams WAL from server to archive

TLDR

Receive WAL to directory

$ pg_receivewal -D [wal_dir] -h [host]
copy
Receive with slot
$ pg_receivewal -D [wal_dir] -S [slot_name]
copy
Receive with compression
$ pg_receivewal -D [wal_dir] -Z [level]
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community