From a6854c2227cd4180f8d73737b28c00beed0acc42 Mon Sep 17 00:00:00 2001 From: Akemi Izuko Date: Fri, 23 Feb 2024 18:58:46 -0700 Subject: [PATCH] Scripts: enable ssh jump in psyncup --- bin/psyncup.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/psyncup.py b/bin/psyncup.py index 64e7198..1545c77 100755 --- a/bin/psyncup.py +++ b/bin/psyncup.py @@ -122,6 +122,7 @@ def build_commands(args, config): "rsync", "--archive", "--human-readable", + "--info=progress2", ] if not args.no_compress: @@ -133,8 +134,9 @@ def build_commands(args, config): if args.dry_run: rsync_cmd.append("--dry-run") - if args.debug: - rsync_cmd.append("--info=progress2") + if config.get("ssh_jump") is not None: + rsync_cmd.append("-e") + rsync_cmd.append(f"ssh -J {config['ssh_jump']}") if config.get("exclude") is not None: for x in config["exclude"]: