mirror of
https://github.com/octoleo/lsyncd.git
synced 2024-12-14 15:08:22 +00:00
42 lines
956 B
Markdown
42 lines
956 B
Markdown
---
|
|
layout: default
|
|
title: "Examples"
|
|
---
|
|
Layer 4 Examples
|
|
----------------
|
|
|
|
bash sync:
|
|
|
|
{% highlight lua %}
|
|
sync{bash, source="/home/lonewolf/teste1", target="/home/lonewolf/teste2"}
|
|
{% endhighlight %}
|
|
|
|
rsyncssh option:
|
|
|
|
{% highlight lua %}
|
|
sync{
|
|
default.rsyncssh,
|
|
source="/var/www/live_site_resources",
|
|
host="192.168.129.90",
|
|
targetdir="/var/www/live_site_resources",
|
|
delete="running",
|
|
exclude={ ".*", "*.tmp" },
|
|
rsync = {
|
|
compress = false,
|
|
checksums = false,
|
|
_extra = {"--bwlimit=50000"},
|
|
}
|
|
}
|
|
{% endhighlight %}
|
|
|
|
Layer 3 Examples
|
|
----------------
|
|
* [GForce](gforce): forces a local directory tree to be read/writable by a group.
|
|
|
|
Layer 2 Examples
|
|
----------------
|
|
|
|
Layer 1 Examples
|
|
----------------
|
|
* [Auto Image Magic](auto-image-magic): creates a "magic" directory in which all images placed into will be converted to other file formats
|