Super User is a question and answer site for computer enthusiasts and power users. 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 have Dropbox and xampp (well, lampp) install on my xubuntu machine. I keep all of the sites I (offline) manage in my Dropbox folder. I have a question on getting it synced with xampp htdocs directory while doing all of the editing in Dropbox.

Say, for example, I have a website called Rob's Rides and the html/images/php/database files reside in /home/user/dropbox/robsrides ... I would also have a "shortcut" directory in /opt/lampp/htdocs/shortcutrobsrides so when I edit code in my dropbox, it will also change in the htdocs folder. The database could also do the same "shortcut method" - The end result would allow me to type in localhost/shortcutrobsrides and see the latest content.

Would this method work? How would I go about creating these shortcuts?

If you're wondering... I'm doing this "the hard way" because I use different computers throughout the day and rely on Dropbox to host my data. I understand for each computer I'd use, a new shortcut folder would have to be created in order to work with xampp, that is perfectly fine.

share|improve this question
up vote 2 down vote accepted

The most 'natural' way to do this that i see is using symlinks - something like ln -s /path/to/original/ /path/to/linkName would create a symlink, and any changes to one location would be reflected in the other.

share|improve this answer
    
Thank you, Journeyman. Have a good day. – user1062058 Dec 22 '11 at 14:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .