Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 want to sync my WWW folder with dropbox. How can I do that ?

I am using Ubuntu server 12.xx something. This for development purpose only.

I goggled it but I was unsuccessful

share|improve this question
up vote 4 down vote accepted
  1. If you want X folder in dropbox (~/Dropbox/X) to act as your www root folder, edit /etc/apache2/sites-available/default and replace /var/www/ with /home/<username>/Dropbox/X. Make sure that files inside the X folder are readable by www-data user.

  2. If you want to add /var/www/ to your Dropbox, and keep it synced, create a symlink inside ~/Dropbox/ to point to /var/www

    cd ~/Dropbox
    ln -s /var/www www

    (You might wanna chown the www folder, so as to add files to it, without using root.

share|improve this answer
what owner/group/permission should i give it? – bleuscyther Jan 13 '13 at 3:59
ok got it change the owner to me :) thanks! – bleuscyther Jan 13 '13 at 4:22

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.