Comments on: How to Install and use Lsyncd on CentOS 7 / RHEL 7 https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/ Sun, 27 Oct 2019 22:58:25 +0000 hourly 1 By: Larry https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/#comment-16455 Sun, 27 Oct 2019 22:58:25 +0000 http://www.linuxtechi.com/?p=3171#comment-16455 Is there a way to configure lsyncd to delete source files and folders after copy them over to a destination?

]]>
By: penguinpages https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/#comment-13356 Wed, 14 Aug 2019 12:53:08 +0000 http://www.linuxtechi.com/?p=3171#comment-13356 wget ‘http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/l/lsyncd-2.2.2-1.el7.x86_64.rpm’
rpm -ivh lsyncd-2.2.2-1.el7.x86_64.rpm
systemctl enable lsyncd

vi /etc/lsyncd.conf
settings {
logfile = “/var/log/lsyncd/lsyncd.log”,
statusFile = “/var/log/lsyncd/lsyncd.status”,
statusInterval = 5,
insist = true,
nodaemon = yes,
}

sync {
default.rsync,
source = ‘/data/gv1/penguinpages_local_cluster/’,
targetdir = ‘/media/sw2_usb_A2/penguinpages_local_cluster/’,
exclude = {
‘.swp’,
‘.*’,
‘.txt~’
},
rsync= {
archive = true,
compress = true,
temp_dir = “/tmp”,
owner = true,
group = true,
perms = true,
checksum = true,
update = true,
links = true,
times = true,
protect_args=true

},
delay = 3,
ssh = {
user = user,
port = 1234
}
}

[root@thor ~]# systemctl start lsyncd
[root@thor ~]# date
Wed Aug 14 08:38:24 EDT 2019
[root@thor ~]# tail /var/log/lsyncd/lsyncd.log
[root@thor ~]# tail /var/log/lsyncd/lsyncd.status
[root@thor ~]#
[root@thor ~]#
[root@thor ~]# date
Wed Aug 14 08:51:46 EDT 2019
[root@thor ~]# tail /var/log/lsyncd/lsyncd.log
[root@thor ~]# tail /var/log/lsyncd/lsyncd.status
[root@thor ~]#

No files syncing. I am not sure root of issue. No logs to debug.

]]>
By: Stacy https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/#comment-12844 Thu, 01 Aug 2019 17:00:45 +0000 http://www.linuxtechi.com/?p=3171#comment-12844 Do you have a working config for multiple hosts with a single target source?

]]>
By: jrb https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/#comment-290 Mon, 21 Nov 2016 14:10:48 +0000 http://www.linuxtechi.com/?p=3171#comment-290 No gcc isn’t needed. I skipped the entire dependency line, this is on a minimal install.

]]>
By: Thibault https://www.linuxtechi.com/install-and-use-lsyncd-on-centos-7-rhel-7/#comment-289 Tue, 05 Apr 2016 11:57:56 +0000 http://www.linuxtechi.com/?p=3171#comment-289 Hello,

Thanks for this guide ! For my info, why is gcc needed in this case ?

Best Regards

Thibault

]]>