Scripts: enable ssh jump in psyncup

This commit is contained in:
Akemi Izuko 2024-02-23 18:58:46 -07:00
parent 2c2d824934
commit a6854c2227
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -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"]: