Remote drupal site with cloud storage db sync


Creating your Dropbox Database

 

  1. Set your directory to Dropbox / Google Drive
  2. Move the current MAMP database to Dropbox / Google Drive
  3. Remove the old MAMP database folder
  4. Create a symbolic link in your MAMP folder to your Dropbox database folder

Each of those steps can be achieved with the corresponding Terminal commands below…

cd ~/Dropbox/
cp -r /Applications/MAMP/db MAMP_DATABASE
rm -rf /Applications/MAMP/db
ln -s ~/Dropbox/MAMP_DATABASE/db /Applications/MAMP/db 
Adding Computers to your Dropbox Database sync setup

The Terminal commands we used earlier are useful in this situation, but we certainly don’t want to just overwrite the existing Dropbox database – We want to use it. This can be achieved with the following steps…

  1. Set your directory to Dropbox
  2. Remove the old MAMP database folder
  3. Create a symbolic link in your MAMP folder to your Dropbox database folder

Each of those steps can be achieved with the corresponding Terminal commands below…

cd ~/Dropbox/
rm -rf /Applications/MAMP/db
ln -s ~/Dropbox/MAMP_DATABASE/db /Applications/MAMP/db 


Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s