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