How to setup Google Drive and Wamp Server to automatically backup and also sync files between computers
Tutorial on how to link your Wamp Server files and database with Google Drive so that your files are backed up and synced with your other computer. You can now pretty much work from anywhere.
Install Google Drive desktop so that it creates a Google Drive folder. Anything that you copy into that folder will sync to your online Google Drive account.
Update the paths to your files in httpd.conf located in C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf
On line 239 update DocumentRoot “c:/wamp/www” to
DocumentRoot “c:/Users/[user]/Google Drive/[what ever folder your sites are in]”
On line 240 update <Directory “c:/wamp/www”> to
c:/Users/[user]/Google Drive/[what ever folder your sites are in]
If you have any virtual hosts set up, change the paths at the bottom of the httpd.conf file too for example:
DocumentRoot ‘c:\Users\[user]\Google Drive\[what ever folder your sites are in]\your-website-folder’
Open my.ini located in C:\wamp\bin\mysql\mysql5.6.12\
On line 39 change datadir=c:/wamp/bin/mysql/mysql5.6.12/data/
c:/Users/[user]/Google Drive/[create a folder called database]
Now go to C:\wamp\bin\mysql\mysql5.6.12\ and copy the contents of the folder called “data” and paste it into the folder you created in Google Drive called “database”.
And there you go. Please leave a comment here if you’re unsure about anything or if you get stuck. I will be more than happy to help you!