Using pg_probackup3 in the Remote Mode

pg_probackup3 supports the remote mode that allows you to perform backup operations remotely via SSH. In this mode, the backup catalog is stored on a local system, while Postgres Pro instance to be backed up is located on a remote system. You must have pg_probackup3 installed on both systems.

Note

pg_probackup3 relies on passwordless SSH connection for communication between the hosts.

Note

In addition to SSH connection, pg_probackup3 uses a regular connection to the database to manage the remote operation. See the section Configuring the Database Cluster for details on how to set up a database connection.

The typical workflow is as follows:

For example, to create an archive full backup of a Postgres Pro cluster located on a remote system with the host address 192.168.0.2 on behalf of the postgres user via the SSH connection through the port 2302, run:

pg_probackup3 backup -B backup_dir --instance=instance_name -b FULL --remote-user=postgres --remote-host=192.168.0.2 --remote-port=2302