--- a/src/Pure/System/isabelle_system.scala Tue May 31 12:48:12 2022 +0200
+++ b/src/Pure/System/isabelle_system.scala Tue May 31 13:14:46 2022 +0200
@@ -423,6 +423,7 @@
def rsync(
cwd: JFile = null,
progress: Progress = new Progress,
+ port: Int = SSH.default_port,
verbose: Boolean = false,
thorough: Boolean = false,
dry_run: Boolean = false,
@@ -431,7 +432,7 @@
args: List[String] = Nil
): Unit = {
val script =
- "rsync --protect-args --archive" +
+ "rsync --protect-args --archive --rsh=" + Bash.string("ssh -p " + port) +
(if (verbose || dry_run) " --verbose" else "") +
(if (thorough) " --ignore-times" else " --omit-dir-times") +
(if (dry_run) " --dry-run" else "") +