We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fac7f9 commit ff7a980Copy full SHA for ff7a980
1 file changed
postgres-appliance/major_upgrade/inplace_upgrade.py
@@ -717,6 +717,7 @@ def rsync_replica(config, desired_version, primary_ip, pid):
717
718
env = os.environ.copy()
719
env['RSYNC_PASSWORD'] = postgresql.config.replication['password']
720
+ primary_ip = f'[{primary_ip}]' if ':' in primary_ip else primary_ip
721
if subprocess.call(['rsync', '--archive', '--delete', '--hard-links', '--size-only', '--omit-dir-times',
722
'--no-inc-recursive', '--include=/data/***', '--include=/data_old/***',
723
'--exclude=/data/pg_xlog/*', '--exclude=/data_old/pg_xlog/*',
0 commit comments