EnterpriseDB / barman

Barman - Backup and Recovery Manager for PostgreSQL
https://www.pgbarman.org/
GNU General Public License v3.0
2.14k stars 193 forks source link

restore_command use socket.getfqdn() get hostname, want config ip address #875

Closed pengliaoye closed 11 months ago

pengliaoye commented 11 months ago

want config ip address instead of hostname in restore_command

martinmarques commented 11 months ago

You can already configure an IP address for the restore_command in Barman, and socket.getfqdn() will give you the FQDN if it's available, or the IP if the IP doesn't resolve to a domain name.