Scripts: enable ssh jump in psyncup
This commit is contained in:
parent
2c2d824934
commit
a6854c2227
|
@ -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"]:
|
||||||
|
|
Loading…
Reference in a new issue