Back Up Your Ghost Blog with Google Drive
Introduction
I recently set up a new blog using the Ghost blogging platform on a self-hosted AWS EC2 instance. With many thanks to my years of experience as a DevOps Engineer, I was able to set up a snapshot policy to fully back up the drive of the instance each night. However, this isn’t a free option, and I’d like a more modular way to back up just the blog itself and its corresponding configurations. This way I could easily export my blog to another hosting platform if I were to choose to do so.
I began to search around for the cheapest (ideally free) options available. There were a few criteria that had to be met for this solution.
- Utility, app or a script to execute the backup.
- A location to store the backup.
- Some kind of versioning system that allowed me to pick and choose which backup to restore.
Working backward I decided it was easiest, and free, to use the cloud storage provider I already use every day, Google Drive. This solution would knock out two of my criteria, a location to store the backup, as well as a handy versioning system already built into the application. That leaves with one last requirement, the actual utility that will perform the backup. Enter ghost-backup.