Hi!
This is how i would use LSYNCD
* Create a file "lsyncd.conf" (or any name u like) with the following:
Code:
settings = {
logfile = "/var/tmp/lsyncd.log",
statusFile = "/var/tmp/lsyncd.status",
nodaemon = true,
}
sync{default.rsync, source="/home/lukejanicke/Websites/Development/follow/", target="/var/www/follow", rsyncOps="-ltusv", delay=1}
(The setting array defines where to write log and status, and it also says not to use LSYNCD as DAEMON, but if u intend to sync al the time, it may be better to set to TRUE).
(The sync array, defines source and target, also RSYNC options and delay before syncing in seconds).
* Then u just run lsyncd with:
Code:
lsyncd lsyncd.config
Hope this helps!
Bookmarks