mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-12 14:17:47 +00:00
commit
e5adb46d0c
@ -72,6 +72,7 @@ sync {
|
|||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
Additional settings:
|
Additional settings:
|
||||||
|
|
||||||
| Name | Description |
|
| Name | Description |
|
||||||
|-----------------|-------------|
|
|-----------------|-------------|
|
||||||
| batchSizeLimit | Files larger then this limit should not be batched into on transfer. Only makes sense with processes > 1 which prevents rsyncssh |
|
| batchSizeLimit | Files larger then this limit should not be batched into on transfer. Only makes sense with processes > 1 which prevents rsyncssh |
|
||||||
@ -627,7 +628,6 @@ Tunnels
|
|||||||
Lsyncd is able to start and manage external programs to provide a tunnel for data transfer.
|
Lsyncd is able to start and manage external programs to provide a tunnel for data transfer.
|
||||||
Additionally it can spawn multiple connections and load-balance connections among them. A tunnel is created through the `tunnel` function.
|
Additionally it can spawn multiple connections and load-balance connections among them. A tunnel is created through the `tunnel` function.
|
||||||
|
|
||||||
```
|
|
||||||
{% highlight lua %}
|
{% highlight lua %}
|
||||||
sync {
|
sync {
|
||||||
default.rsync,
|
default.rsync,
|
||||||
@ -638,7 +638,6 @@ sync {
|
|||||||
source = "/home/user/src/",
|
source = "/home/user/src/",
|
||||||
}
|
}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
```
|
|
||||||
|
|
||||||
You can then set the shell for the tunnel user to `/bin/false` and configure the rsyncd server side appropriately.
|
You can then set the shell for the tunnel user to `/bin/false` and configure the rsyncd server side appropriately.
|
||||||
|
|
||||||
|
@ -6,14 +6,16 @@ Layer 4 Examples
|
|||||||
----------------
|
----------------
|
||||||
|
|
||||||
bash sync:
|
bash sync:
|
||||||
<pre>
|
|
||||||
|
{% highlight lua %}
|
||||||
sync{bash, source="/home/lonewolf/teste1", target="/home/lonewolf/teste2"}
|
sync{bash, source="/home/lonewolf/teste1", target="/home/lonewolf/teste2"}
|
||||||
</pre>
|
{% endhighlight %}
|
||||||
|
|
||||||
rsyncssh option:
|
rsyncssh option:
|
||||||
|
|
||||||
<pre>
|
{% highlight lua %}
|
||||||
sync{default.rsyncssh,
|
sync{
|
||||||
|
default.rsyncssh,
|
||||||
source="/var/www/live_site_resources",
|
source="/var/www/live_site_resources",
|
||||||
host="192.168.129.90",
|
host="192.168.129.90",
|
||||||
targetdir="/var/www/live_site_resources",
|
targetdir="/var/www/live_site_resources",
|
||||||
@ -25,7 +27,7 @@ sync{default.rsyncssh,
|
|||||||
_extra = {"--bwlimit=50000"},
|
_extra = {"--bwlimit=50000"},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</pre>
|
{% endhighlight %}
|
||||||
|
|
||||||
Layer 3 Examples
|
Layer 3 Examples
|
||||||
----------------
|
----------------
|
||||||
|
Loading…
Reference in New Issue
Block a user