Post by sout saretpg_basebackup: could not connect to server: FATAL: no pg_hba.conf entry for replication connection from host "10.120.10.45", user "postgres", SSL off
Did you verify you have the good configuration in your pg_hba.conf file on your primary server :
# replication privilege.
local replication postgres trust
host replication postgres 127.0.0.1/32 trust
host replication postgres ::1/128 trust
host replication postgres 10.120.10.45/32 trust