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", "rsync",
"--archive", "--archive",
"--human-readable", "--human-readable",
"--info=progress2",
] ]
if not args.no_compress: if not args.no_compress:
@ -133,8 +134,9 @@ def build_commands(args, config):
if args.dry_run: if args.dry_run:
rsync_cmd.append("--dry-run") rsync_cmd.append("--dry-run")
if args.debug: if config.get("ssh_jump") is not None:
rsync_cmd.append("--info=progress2") rsync_cmd.append("-e")
rsync_cmd.append(f"ssh -J {config['ssh_jump']}")
if config.get("exclude") is not None: if config.get("exclude") is not None:
for x in config["exclude"]: for x in config["exclude"]: