Back up your WordPress Installation on Google Drive

So, I got lured into setting a back-up strategy for the present blog, mostly because I cahnge a lot of things at times while trying to learn about wordpress. I could probably do this via a time scheduled job on my hosting provider, but I am not that techy so I searched for relevant plug-ins, and there are a ton (see this list). I would like to stress out that I am getting extremely fond of Google Drive at this moment, so I narrowed the list to those plug-ins that are capable of storing the back-up over my drive.

Confession : I am not sure if this is optimal, though..

From my shortlist I prefered to use UpdraftPlus. It claims to simplifies backups and restoration. You can backup copies of the wordpress databases on the cloud (Amazon S3, Dropbox, Google Drive) to  FTP and email (this would be not of practical use if you have a large folder of upload (>20Mb probably will get cut from the email provider).

The main options are below. You can configure the frequency of the backup (the shortest is 4hours) and the number of backups that will be retained (1 is enough for me). Next check what should be backup’d. Iback up everything :) You can set an email to alert you of possible issues (if you don’t you can always access the log of the process). Last, you can set an encryption password for use when you will need to restore your wordpress database.

Configure Backup Contents And Schedule

File backup intervals:  and retain this many backups: 
Database backup intervals:  and retain this many backups: 
If you would like to automatically schedule backups, choose schedules from the dropdowns above. Backups will occur at the intervals specified starting just after the current time. If the two schedules are the same, then the two backups will take place together. If you choose “manual” then you must click the “Backup Now!” button whenever you wish a backup to occur.
Include in files backup:  Plugins
 Themes
 Uploads
 Any other directories found inside wp-content – but exclude these directories: 
Include all of these, unless you are backing them up outside of UpdraftPlus. The above directories are usually everything (except for WordPress core itself which you can download afresh from WordPress.org). But if you have made customised modifications outside of these directories, you need to back them up another way. (Use WordShell for automatic backup, version control and patching).
Email:
Enter an address here to have a report sent (and the whole backup, if you choose) to it.
Database encryption phrase:
If you enter text here, it is used to encrypt backups (Rijndael). Do make a separate record of it and do not lose it, or all your backups will be useless. Presently, only the database file is encrypted. This is also the key used to decrypt backups from this admin interface (so if you change it, then automatic decryption will not work until you change it back). You can also use the file example-decrypt.php from inside the UpdraftPlus plugin directory to decrypt manually.

Next you can select where you will store the backups, as explained I chose Google Drive, so I must authenticate the UpdraftPlus to have access to my Drive. If you haven;t done this before it’s a litte awkward at first sight but it’s easy. The details are really clear on the links provided below. Essentially you need to create a New Project (say “WP-Back Up”) then generate a CliendID and copy this and the Cliend Secret into the console. Then go to the folder that you will store the backups and copy the part of the URL that is next to the /#folders/.

Choose your remote storage:
Google Drive: Google DriveGoogle Drive is a great choice, because UpdraftPlus supports chunked uploads – no matter how big your blog is, UpdraftPlus can upload it a little at a time, and not get thwarted by timeouts.
Google Drive: For longer help, including screenshots, follow this link. The description below is sufficient for more expert users.Follow this link to your Google API Console, and there create a Client ID in the API Access section. Select ‘Web Application’ as the application type.You must add http://www.yourdomain.com/wp-admin/options-general.php?page=updraftplus&action=updraftmethod-googledrive-auth as the authorised redirect URI (under “More Options”) when asked. N.B. If you install UpdraftPlus on several WordPress sites, then you cannot re-use your client ID; you must create a new one from your Google API console for each blog.

After all is set up, you will need to enable the service via the wordpress plug-in page and you will start seeing the backups in your Drive folder like this…

statsravingmad.com - Google Drive

 

Hope this was helpful. May the Power be with you

2 thoughts on “Back up your WordPress Installation on Google Drive

Leave a Reply