As of version 2.0, Barman now supports obtaining backups from the primary server through the use of streaming replication. Since most major utilities and the core functionality recommend streaming replication in place of direct file manipulation, you might want to consider using it instead. To configure Barman to use streaming replication instead of rsync, we'll need to modify the configuration entry we appended to resemble this:
[primary] description = "Primary PostgreSQL Server" conninfo = "host=pg-primary user=postgres" streaming_conninfo = "host=pg-primary user=rep_user" streaming_archiver = on slot_name = "barman" backup_method = "postgres"
Once we've made these changes, we can remove the archive_command setting from ...