root@nginx1:/etc# cat /etc/lsyncd/lsyncd.conf------settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.stat", statusInterval = 2,}
-- nginx2sync{ default.rsync, source="/binarydata/", target="192.168.2.41:/binarydata/", rsync={ compress = true, acls = true, verbose = true, owner = true, group = true, perms = true, rsh ="/usr/bin/ssh -l root -i /root/.ssh/id_rsa", _extra = { "--delete" } }}root@nginx1:/etc#
root@nginx1:/etc# cat os-release
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=debian
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@nginx1:/etc# uname -a
Linux nginx1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt25-2 (2016-04-08) x86_64 GNU/Linux
root@nginx1:/etc# dpkg -l | grep lsync
ii lsyncd 2.1.5-2 amd64 daemon to synchronize local directories using rsync
root@nginx1:/etc#
--
You received this message because you are subscribed to the Google Groups "lsyncd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lsyncd+un...@googlegroups.com.
To post to this group, send email to lsy...@googlegroups.com.
Visit this group at https://groups.google.com/group/lsyncd.
For more options, visit https://groups.google.com/d/optout.
my apologies. If it exists on the destination and not on source, it should be deleted. This is not happening.
--
------settings = { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/var/log/lsyncd/lsyncd.stat", statusInterval = 2,}
-- nginx2sync{ default.rsync, source="/binarydata/", target="192.168.2.41:/binarydata/", rsync={ compress = true, acls = true, verbose = true, owner = true, group = true, perms = true, rsh ="/usr/bin/ssh -l root -i /root/.ssh/id_rsa", }}
Every 1.0s: ls -hal /binarydata/ Thu May 12 17:04:37 2016
total 4.0K
drwxr-xr-x 2 root root 21 May 12 17:01 .
drwxr-xr-x 23 root root 4.0K May 12 12:39 ..
-rw-r--r-- 1 root root 0 May 12 17:00 file.txt
==> lsyncd.log <==Thu May 12 17:08:33 2016 Normal: --- TERM signal, fading ---Thu May 12 17:08:33 2016 Normal: recursive startup rsync: /binarydata/ -> 192.168.2.41:/binarydata/tail: lsyncd.stat: file truncatedLsyncd status report at Thu May 12 17:08:33 2016
Sync1 source=/binarydata/There are 1 delaysactive InitExcluding: nothing.
Inotify watching 1 directories 1: /binarydata/
==> lsyncd.log <==sending incremental file listdeleting file.txt
sent 48 bytes received 24 bytes 144.00 bytes/sectotal size is 0 speedup is 0.00Thu May 12 17:08:33 2016 Normal: Startup of "/binarydata/" finished.tail: lsyncd.stat: file truncated