Hello, I'm Otsuka, CTO at Liberogic.
Even though I was told to write an article, I don't have much to write, so today I'll talk about something from a while ago.
actually over a year agoAt that time, we were creating an in-house backup system for microCMS.
microCMSBackup for data preservationHowever, it is not possible to retrieve past data from the management screen. I started this as a way to prevent data from being deleted due to operational errors.
A brief introduction to the system
- Create a program that backs up with Cloudflare Workers
- Manual or CRON start


- endpoint + id + revisedAtto ensure uniqueness
- Data is not duplicated and snapshot management is performed.


- Save media files together



Articles are stored on Cloudflare D1, and media files are stored on Cloudflare R2.
You can back up both article data and images at the same time.
A system that takes recovery into consideration
Backup is not just about "taking"Being able to return it in an emergencyis important.
"I want to go back to yesterday's state" "I want to restore the article I accidentally deleted"
Being able to handle such cases will give you a much greater sense of security when operating your system.
summary
- A mechanism for backing up microCMSBuilt in the Cloudflare environment
- Save articles and content together and manage snapshots
- Peace of mind, including recoveryA system that can
These kinds of systems that are created because we ourselves want them are surprisingly the most useful in practice.
Well then.
He is the backbone of the Liberogic Technology Department. Whenever he hears someone say, "I wish I had something like this, it would be so convenient," he uses his ingenuity to add value and implement it in no time. He is a treasure of our company with his excellent communication skills and many fan-favorite customers, and he also loves cats.
Kakeru-san
CTO / Chief Engineer / CEO of Nekoana Inc. / Looks unnecessarily young