I’m currently playing around with ownCloud. I came across this article on webupd8 about syncing ownCloud with your desktop using csync. Since this awesome tool is not available for Mint or Debian I decided to compile it myself from source.

I found a very helpfull post about compiling it for Ubuntu 9.10.

The dependencies changed a bit between csync version 0.44.0 and 0.50.0. So i added the full list for 0.50.0 below:

  • cmake
  • check
  • log47
  • sqlite3
  • libiniparser
  • libsmbclient
  • libssh
  • libneon
  • doxygen

Here is the command to install all needed dependencies:

1
sudo apt-get install cmake check liblog4c3 liblog4c-dev libsqlite3-0 libsqlite3-dev libsmbclient-dev libssh-4 libssh-dev libneon27 libneon27-dev doxygen checkinstall

I downloaded the source of csync via git:

user-data
1
git clone git://git.csync.org/projects/csync.git

Now you can follow the instructions on gremu.net. You have to install libiniparser as described. Especially the last part about building a .deb file is very good.

Because csync could not find its shared libraries in /usr/local/lib, I changed all paths in csync/build/CMakeCache.txt from /usr/local to /usr before calling cmake.

Here the resulting csync_0.50.0-1_amd64.deb. This one only works with 64bit Linux!

To run csync with owncloud type something similar to this:

1
csync /home/user/owncloud owncloud://user:password@cloud.domain.tld/files/webdav.php/

Comment below if you found issues or have suggestions how to make it better.

Hope it helps,
visit