Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.