From e52a9ff70feec53974f5aa55c9be20505746bf7e Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 7 Oct 2021 13:01:48 -0400 Subject: [PATCH] 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. --- confluent_server/confluent/syncfiles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/syncfiles.py b/confluent_server/confluent/syncfiles.py index fd4c5aba..53298c20 100644 --- a/confluent_server/confluent/syncfiles.py +++ b/confluent_server/confluent/syncfiles.py @@ -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