in lib/muchos/existing.py [0:0]
def send_to_proxy(self, path, target, skip_if_exists=True):
print("Copying to proxy: ", path)
cmd = "scp -o 'StrictHostKeyChecking no'"
if skip_if_exists:
cmd = (
'rsync --update --progress -e "ssh -q -o '
"'StrictHostKeyChecking no'\""
)
subprocess.call(
"{cmd} {src} {usr}@{ldr}:{tdir}".format(
cmd=cmd,
src=path,
usr=self.config.get("general", "cluster_user"),
ldr=self.config.get_proxy_ip(),
tdir=target,
),
shell=True,
)