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:
cp lsyncd.conf.xml /etc/
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.
17th January 2011 at 2:29 pm
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.
18th January 2011 at 5:01 pm