2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +00:00

Have syncfiles attempt to preserve more

We cannot preserve symlinks (since we need them intact),
but we can use other rsync features to make synchronization work
better by default.
This commit is contained in:
Jarrod Johnson 2021-10-07 13:01:48 -04:00
parent 3b7e7afc24
commit e52a9ff70f

View File

@ -97,7 +97,7 @@ def sync_list_to_node(sl, node, suffixes):
os.path.join(targdir, suffixes['merge']), True)
sshutil.prep_ssh_key('/etc/confluent/ssh/automation')
output = subprocess.check_output(
['rsync', '-rvL', targdir + '/', 'root@{}:/'.format(node)], timeout=86400)
['rsync', '-rvLpgotDAX', targdir + '/', 'root@{}:/'.format(node)], timeout=86400)
except Exception as e:
if 'CalledProcessError' not in repr(e):
# https://github.com/eventlet/eventlet/issues/413