I wanted to install Dropbox on the WordPress server so that I could easily update theme files on my notebook and have them sync with the server. I also wanted a simple backup of all the modifications done to the server. These are the steps of how I went about installing Dropbox using the command line.
- Log in the server and change to your home folder.
- Get the latest version of dropbox:
wget –O dropbox.tar.gz http://www.dropbox.com/download/?plat=lnx.x86 - Extract the tar file:
tar xzf dropbox.tar.gz -
Run dropboxd:
~/.dropbox-dist/dropboxd
The process will output something like:
Please visit https://www.dropbox.com/cli_link?host_id=c506e627a5fc9cfa2240c6355d8cc0e5&cl=en_US to link this machine.
This client is not linked to any account...Enter the link into your browser and follow the setup process. Then once the messages stop and say that the server is linked to an account, kill the process with control-c.
- Next I created a start-stop-daemon script to auto run Dropbox when the system starts. The details for creating the script are on the Dropbox Wiki. I did Steps 1&2. Make sure to change DROPBOX_USERS to include the user (in my case “bitnami”).
- Next I did a bit of symbolic linking to WordPress files. Back in the terminal, cd into your Dropbox folder and run the following commands:
ln -s /opt/bitnami/apache2/conf/ apache2conf
ln -s /opt/bitnami/apps/wordpress/ wordpress
That’s it for the Dropbox side of things. After it syncs I can happily work without logging into the server so much. The other thing that I’ll do later is to schedule a database backup and sync that to Dropbox as well. I’ll also wrap up my Dropbox folders using another backup service as well just to be on the safe side.






