Install rsync and lsyncd

2 comments

Posted on 17th January 2011 by cloudhostingguy in Cloud Hosting

,

Next up is to install rsync and lsyncd.  First, rsync is simple, and could already be installed (you don’t need to run it as a server, just the client), make sure you have it with:

apt-get install rsync

Next is lsyncd.  There is no official Debian package yet, but it’s simple to build from source and install.  First off, if you don’t have build essentials you’ll need them, as well as libxml2-dev to build the lsyncd source.  Installing those is as simple as:

apt-get install libxml2-dev build-essential

Now we’ll get the lsyncd code (you can check for a newer version at http://lsyncd.googlecode.com) and build that:

wget http://lsyncd.googlecode.com/files/lsyncd-1.26.tar.gz
tar -zxf lsyncd-1.26.tar.gz
cd lsyncd-1.26
./configure
make; make install

This install does not install the configuration file, so we’ll do that manually now:

free hosting blog
cp lsyncd.conf.xml /etc/
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

2 Comments
  1. axkibe says:

    Lsyncd 1.26 is very old. I’d suggest updating to 2.0.1 If you want to use the pure C and XML version before the change to Lua scripts use Lsyncd. 1.42.

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    17th January 2011 at 2:29 pm

  2. cloudhostingguy says:

    Great point, this post was asked for by a user to help with their dropbox clone. The lsyncd 1.26 is the version we have found that they are using to run their system.

    VN:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    VN:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    18th January 2011 at 5:01 pm

Leave a review

*

Call us at 801.384.0032