.\" Automatically generated by Pandoc 2.10.1 .\" .TH "BARMAN-WAL-RESTORE" "1" "November 5, 2020" "Barman User manuals" "Version 2.12" .hy .SH NAME .PP barman-wal-restore - \[aq]restore_command\[aq] based on Barman\[aq]s get-wal .SH SYNOPSIS .PP barman-wal-restore [\f[I]OPTIONS\f[R]] \f[I]BARMAN_HOST\f[R] \f[I]SERVER_NAME\f[R] \f[I]WAL_NAME\f[R] \f[I]WAL_DEST\f[R] .SH DESCRIPTION .PP This script can be used as a \[aq]restore_command\[aq] for PostgreSQL servers, retrieving WAL files using the \[aq]get-wal\[aq] feature of Barman. An SSH connection will be opened to the Barman host. \f[C]barman-wal-restore\f[R] allows the integration of Barman in PostgreSQL clusters for better business continuity results. .PP This script and Barman are administration tools for disaster recovery of PostgreSQL servers written in Python and maintained by 2ndQuadrant. .SH POSITIONAL ARGUMENTS .TP BARMAN_HOST the host of the Barman server. .TP SERVER_NAME the server name configured in Barman from which WALs are taken. .TP WAL_NAME the value of the \[aq]%f\[aq] keyword (according to \[aq]restore_command\[aq]). .TP WAL_DEST the value of the \[aq]%p\[aq] keyword (according to \[aq]restore_command\[aq]). .SH OPTIONS .TP -h, --help show a help message and exit .TP -V, --version show program\[aq]s version number and exit .TP -U \f[I]USER\f[R], --user \f[I]USER\f[R] the user used for the ssh connection to the Barman server. Defaults to \[aq]barman\[aq]. .TP -s \f[I]SECONDS\f[R], --sleep \f[I]SECONDS\f[R] sleep for SECONDS after a failure of get-wal request. Defaults to 0 (nowait). .TP -p \f[I]JOBS\f[R], --parallel \f[I]JOBS\f[R] specifies the number of files to peek and transfer in parallel, defaults to 0 (disabled). .TP --spool-dir \f[I]SPOOL_DIR\f[R] Specifies spool directory for WAL files. Defaults to \[aq]/var/tmp/walrestore\[aq] .TP -P, --partial retrieve also partial WAL files (.partial) .TP -z, --gzip transfer the WAL files compressed with gzip .TP -j, --bzip2 transfer the WAL files compressed with bzip2 .TP -c \f[I]CONFIG\f[R], --config \f[I]CONFIG\f[R] configuration file on the Barman server .TP -t, --test test both the connection and the configuration of the requested PostgreSQL server in Barman to make sure it is ready to receive WAL files. With this option, the \[aq]WAL_NAME\[aq] and \[aq]WAL_DEST\[aq] mandatory arguments are ignored. .SH EXIT STATUS .TP 0 Success .TP Not zero Failure .SH SEE ALSO .PP \f[C]barman\f[R] (1), \f[C]barman\f[R] (5). .SH BUGS .PP Barman has been extensively tested, and is currently being used in several production environments. However, we cannot exclude the presence of bugs. .PP Any bug can be reported via the Github issue tracker. .SH RESOURCES .IP \[bu] 2 Homepage: .IP \[bu] 2 Documentation: .IP \[bu] 2 Professional support: .SH COPYING .PP Barman is the property of 2ndQuadrant Limited and its code is distributed under GNU General Public License v3. .PP Copyright (C) 2011-2020 2ndQuadrant Ltd - . .SH AUTHORS 2ndQuadrant .