May 2018
Intermediate to advanced
576 pages
30h 25m
English
Connect as the barman user on malcolm and type the following:
barman recover --remote-ssh-command 'ssh postgres@brian' bon last /var/lib/pgsql/9.6/data
The preceding command will use the latest available backup for the bon server and prepare everything you need to restore your server in the PostgreSQL destination directory (/var/lib/pgsql/10/data), as shown in the output:
Starting remote restore for server bon using backup 20171003T194717Destination directory: /var/lib/pgsql/10/dataCopying the base backup.Copying required WAL segments.Generating archive status filesIdentify dangerous settings in destination directory. IMPORTANTThese settings have been modified to prevent data losses postgresql.conf line 645: archive_command ...