GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
BARMAN-WAL-RESTORE(1) Barman BARMAN-WAL-RESTORE(1)

barman-wal-restore - Barman-cli Commands

barman-wal-restore

[ { -h | --help } ]
[ { -V | --version } ]
[ { -U | --user } USER ]
[ --port PORT ]
[ { -s | --sleep } SECONDS ]
[ { -p | --parallel } JOBS ]
[ --spool-dir SPOOL_DIR ]
[ { -P | --partial } ]
[ { { -z | --gzip } | { -j | --bzip2 } | --keep-compression } ]
[ { -c | --config } CONFIG ]
[ { -t | --test } ]
BARMAN_HOST SERVER_NAME WAL_NAME WAL_DEST


This script serves as a restore_command for Postgres servers, enabling the retrieval of WAL files through Barman's get-wal feature. It establishes an SSH connection to the Barman host and facilitates the integration of Barman within Postgres clusters, enhancing business continuity.

Exit Statuses are:

  • 0 for SUCCESS.
  • 1 for remote get-wal command FAILURE, likely because the requested WAL could not be found.
  • 2 for ssh connection FAILURE.
  • Any other non-zero for FAILURE.

The server name configured in Barman for the Postgres server from which the WAL file is retrieved.
The host of the Barman server.
The value of the '%f' keyword (according to restore_command).
The value of the '%p' keyword (according to restore_command).
Display a help message and exit.
Display the program's version number and exit.
Specify the user for the SSH connection to the Barman server (defaults to barman).
Define the port used for the SSH connection to the Barman server.
Pause for SECONDS after a failed get-wal request (defaults to 0 - no wait).
Indicate the number of files to peek and transfer simultaneously (defaults to 0 - disabled).
Specify the spool directory for WAL files (defaults to /var/tmp/walrestore).
Include partial WAL files (.partial) in the retrieval.
Transfer WAL files compressed with gzip.
Transfer WAL files compressed with bzip2.
If specified, compressed files will be trasnfered as-is and decompressed on arrival on the client-side.
Specify the configuration file on the Barman server.
Test the connection and configuration of the specified Postgres server in Barman to ensure it is ready to receive WAL files. This option ignores the mandatory arguments WAL_NAME and WAL_DEST.

WARNING:

-z / --gzip and -j / --bzip2 options are deprecated and will be removed in the future. For WAL compression, please make sure to enable it directly on the Barman server via the compression configuration option.


EnterpriseDB

© Copyright EnterpriseDB UK Limited 2011-2025

June 18, 2025 3.14

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.