Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Ubuntu 12.10 guest that is running in VMware Workstation on a Windows 7 host.

I have created a shared folder so that Ubuntu can see a folder that lives on my Windows 7 host. I then set it up so that every time Ubuntu boots, the shared folder will be mounted under /files.

So far, everything works well. However, I created a second folder called /files2 and wish to use lsyncd to sync /files to /files2.

  • lsyncd was installed using sudo apt-get install lsyncd.
  • After installation, I created /etc/lsyncd/lsyncd.conf.lua.

This is my configuration file (etc/lsyncd/lsyncd.conf.lua)

sync {
    source    = "/www",
    target    = "/www2",
    rsyncOpts = "-ltuspogX",

The problem is that the sync never seems to happen, that is even if I restart or start/stop lsyncd.

Finally, if I ever create a file in the shared folder on the host machine (windows 7), I can see it in /files, but it never gets synced to /files2.

I need to get lsyncd to sync when I create/modify/delete folders in /files in my Ubuntu guest or Windows.

Is there anything in my configuration that I have missed to cause the sync to not work?

share|improve this question

rsyncOpts was depreciated you need to use the rsync {} structure in the lua config file

This link should help:

Look at the "default.rsync" section, there's some example code and below it a list of the available rsync options.

share|improve this answer
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – papukaija Oct 3 '13 at 16:53
@papukaija the answer is there, the link is just a reference. – Braiam Oct 3 '13 at 18:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.