Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Poelzleithner
bfc604a591 Implement tunnel pool mode.
In this mode, multiple tunnel processes are started and connection a load
balanced on the pool of connections.

Example config:

...
sync {
  default.rsync,
  tunnel = tunnel {
    command = {"ssh", "-N", "-L", "localhost:${localport}:localhost:873", "user@testmachine"},
    mode = "pool",
    parallel = 2,
  },
  target    = "rsync://localhost:${localport}/test",
  ...
}
2022-03-23 23:44:19 +01:00
Daniel Poelzleithner
cf7cfe1bda Add function to return a free port 2022-03-17 02:26:00 +01:00
Daniel Poelzleithner
60e6505473 Add function to substitude commands with placeholders 2022-03-16 17:38:03 +01:00
Daniel Poelzleithner
5b0d266669 add cmd option to pass ssh options 2021-12-08 18:24:13 +01:00