<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Linux Forum &mdash; lsyncd не хочет работать.]]></title>
		<link>https://linuxforum.ru/viewtopic.php?id=23741</link>
		<atom:link href="https://linuxforum.ru/extern.php?action=feed&amp;tid=23741&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «lsyncd не хочет работать.».]]></description>
		<lastBuildDate>Mon, 13 Aug 2012 18:03:43 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: lsyncd не хочет работать.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=292828#p292828</link>
			<description><![CDATA[<p>можно закрывать тему. Перелопатил конфиг оказался вот как надо было делать.<br /></p><div class="codebox"><pre><code>settings = {
  logfile    = &quot;/var/log/lsyncd/lsyncd.log&quot;, 
  statusFile = &quot;/var/log/lsyncd/lsyncd.status&quot;, 
  nodaemon   = &quot;true&quot;, 
} 

sync { 
  default.rsync,
  source=&quot;/home/samba/&quot;,
  target=&quot;rsync@f17.10::share/&quot;,
  rsyncOps={&quot;-ausS&quot;},
  delay=10,
}</code></pre></div><p>странно почему только в мануале не написано про синтаксис target=&quot;rsync@f17.10::share/&quot;, не чего такого.</p>]]></description>
			<author><![CDATA[null@example.com (semperN)]]></author>
			<pubDate>Mon, 13 Aug 2012 18:03:43 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=292828#p292828</guid>
		</item>
		<item>
			<title><![CDATA[Re: lsyncd не хочет работать.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=292807#p292807</link>
			<description><![CDATA[<p>подправил конфиг</p><div class="codebox"><pre><code>settings = {
  logfile    = &quot;/var/log/lsyncd/lsyncd.log&quot;, 
  statusFile = &quot;/var/log/lsyncd/lsyncd.status&quot;, 
  nodaemon   = true 
} 

sync { 
  default.rsync, 
  source=&quot;/home/samba/&quot;,
  target=&quot;rsync@f17.10-rsync::share/&quot;,
  rsyncOps={&quot;-ausS&quot;},
  delay=10 </code></pre></div><p>}</p><br /><p>после запуска выдает <br /></p><div class="codebox"><pre><code>[root@f17 lsyncd]# lsyncd -log all lsyncd.conf.lua 
kernels clocks_per_sec=100
Call: configure()
Inotify: inotify fd = 3
Call: initialize()
03:33:37 Function: Inotify.addWatch(/home/samba/, (true), (nil), (nil))
03:33:37 Inotify: addwatch(/home/samba/)-&gt;1
03:33:37 Normal: recursive startup rsync: /home/samba/ -&gt; rsync@f17.10-rsync::share/
03:33:37 Exec: /usr/bin/rsync [--delete] [-ausS] [-r] [/home/samba/] [rsync@f17.10-rsync::share/]
03:33:37 Call: getAlarm()
03:33:37 Debug: getAlarm returns: (false)
03:33:37 Masterloop: going into select (no timeout).
rsync: getaddrinfo: f17.10-rsync 873: Name or service not known
rsync error: error in socket IO (code 10) at clientserver.c(122) [sender=3.0.9]
03:33:37 Call: collectProcess()
03:33:37 Delay: collected an event
03:33:37 Normal: Retrying startup of &#039;/home/samba/&#039;.
03:33:37 Call: cycle()
03:33:37 Function: invokeActions(&#039;Sync1&#039;,(Timestamp: 4312878.68))
03:33:37 Function: write((Timestamp: 4312878.68))
03:33:37 Statusfile: writing now
03:33:37 Call: getAlarm()
03:33:37 Debug: getAlarm returns: (Timestamp: 4312888.68)
03:33:37 Masterloop: going into select (timeout 9.99 seconds)
03:33:43 Call: inotifyEvent()
03:33:43 Inotify: got event Create 1231234145111(1)
03:33:43 Function: delay(Sync1, Create, /1231234145111, (nil))
03:33:43 Delay: Create:/1231234145111blocked byBlanket event
03:33:43 Call: cycle()
03:33:43 Function: invokeActions(&#039;Sync1&#039;,(Timestamp: 4312883.95))
03:33:43 Function: write((Timestamp: 4312883.95))
03:33:43 Statusfile: setting alarm: (Timestamp: 4312893.95)
03:33:43 Call: getAlarm()
03:33:43 Debug: getAlarm returns: (Timestamp: 4312888.68)
03:33:43 Masterloop: going into select (timeout 4.73 seconds)
03:33:43 Call: inotifyEvent()
03:33:43 Inotify: got event Modify 1231234145111(1)
03:33:43 Function: delay(Sync1, Modify, /1231234145111, (nil))
03:33:43 Delay: Modify:/1231234145111 absorbed by Create:/1231234145111
03:33:43 Call: cycle()
03:33:43 Function: invokeActions(&#039;Sync1&#039;,(Timestamp: 4312883.96))
03:33:43 Function: write((Timestamp: 4312883.96))
03:33:43 Statusfile: waiting((Timestamp: 4312883.96) &lt; (Timestamp: 4312893.95))
03:33:43 Call: getAlarm()
03:33:43 Debug: getAlarm returns: (Timestamp: 4312888.68)
03:33:43 Masterloop: going into select (timeout 4.72 seconds)
03:33:47 Call: cycle()
03:33:47 Function: invokeActions(&#039;Sync1&#039;,(Timestamp: 4312888.68))
03:33:47 Normal: Calling rsync with filter-list of new/modified files/dirs

03:33:47 Exec: /usr/bin/rsync [&lt;] [] [-ausS] [-r] [--delete] [--force] [--from0] [--include-from=-] [--exclude=*] [/home/samba/] [rsync@f17.10-rsync::share/]
03:33:47 Function: write((Timestamp: 4312888.68))
03:33:47 Statusfile: waiting((Timestamp: 4312888.68) &lt; (Timestamp: 4312893.95))
03:33:47 Call: getAlarm()
03:33:47 Debug: getAlarm returns: (Timestamp: 4312893.95)
03:33:47 Masterloop: going into select (timeout 5.27 seconds)
03:33:53 Call: cycle()
03:33:53 Function: invokeActions(&#039;Sync1&#039;,(Timestamp: 4312893.96))
03:33:53 Function: write((Timestamp: 4312893.96))
03:33:53 Statusfile: writing now
03:33:53 Call: getAlarm()
03:33:53 Debug: getAlarm returns: (false)
03:33:53 Masterloop: going into select (no timeout).</code></pre></div><p>как быть подскажите пожалуйста</p>]]></description>
			<author><![CDATA[null@example.com (semperN)]]></author>
			<pubDate>Mon, 13 Aug 2012 17:28:39 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=292807#p292807</guid>
		</item>
		<item>
			<title><![CDATA[lsyncd не хочет работать.]]></title>
			<link>https://linuxforum.ru/viewtopic.php?pid=292580#p292580</link>
			<description><![CDATA[<p>Хотел настроить синхронизацию двух папок удаленых машин. fedora 17. Но не как не получается.<br />Есть две машины f17.9 и f17.10. </p><p>На f17.10 настроин rsync сервер. Вот его конфиг:</p><div class="codebox"><pre><code>[share]
 comment = share
 path = /home/samba
 use chroot = true
 uid = root
 gid = root
 log file = /var/log/rsyncd/logs.log
 read only = false
 write only = false
 hosts allow = f17.9 f17.10
 hosts deny = *
 transfer logging = false</code></pre></div><p>f17.9 lsyncd конфиг выглядит так.<br /></p><div class="codebox"><pre><code>settings = {
  logfile    = &quot;/var/log/lsyncd/lsyncd.log&quot;,
  statusFile = &quot;/var/log/lsyncd/lsyncd.status&quot;,
  nodaemon   = true 
}

sync {
  default.rsync, 
  source=&quot;/home/samba&quot;, 
  target=&quot;f17.10://share/&quot;,
  rsyncOps={&quot;-ausS&quot;},
  delay=1 
}</code></pre></div><p>но при запуске спрашивает пароль ssh зачем то и все равно папки не синхронизируются вообще не как. Пишется только вот что.<br /></p><div class="codebox"><pre><code>[root@f17 lsyncd]# lsyncd lsyncd.conf.lua
01:12:29 Normal: recursive startup rsync: /home/samba/ -&gt; share/
01:12:29 Normal: Startup of &#039;/home/samba/&#039; finished.
01:12:34 Normal: Calling rsync with filter-list of new/modified files/dirs
/clear22222222
/
01:12:34 Normal: Finished a list = 0
^C
[root@f17 lsyncd]# vim lsyncd.conf.lua 
[root@f17 lsyncd]# lsyncd lsyncd.conf.lua
01:17:48 Normal: recursive startup rsync: /home/samba/ -&gt; f17.10://share/
root@f17.10&#039;s password: 
01:18:26 Normal: Startup of &#039;/home/samba/&#039; finished.
01:18:37 Normal: Calling rsync with filter-list of new/modified files/dirs
/testfile
/
root@f17.10&#039;s password:
01:18:43 Normal: Finished a list = 0 </code></pre></div><p>если ввести sync -ausS /home/samba/ rsync://f17.10/share то все файлы синхронизируются. Помогите пожалуйста разобраться.</p>]]></description>
			<author><![CDATA[null@example.com (semperN)]]></author>
			<pubDate>Sun, 12 Aug 2012 17:15:29 +0000</pubDate>
			<guid>https://linuxforum.ru/viewtopic.php?pid=292580#p292580</guid>
		</item>
	</channel>
</rss>
