How to Install and use Lsyncd on CentOS 7 / RHEL 7

4 Responses

  1. Thibault says:

    Hello,

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

    Best Regards

    Thibault

  2. jrb says:

    No gcc isn’t needed. I skipped the entire dependency line, this is on a minimal install.

  3. Stacy says:

    Do you have a working config for multiple hosts with a single target source?

  4. penguinpages says:

    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
    }
    }

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *