Topics

How we built a backup feature for microCMS

  • column

Hello, I'm Otsuka, CTO at Liberogic.

When asked to write an article, I often struggle to find topics, so today I'll share an old story.

We actually built a backup system for microCMS internally over a year ago.

microCMS has backups for data preservation, but you can't retrieve past data from the admin interface. We created this as a safeguard against accidental data deletion—basically, we decided to build it ourselves.

How the system works: a quick overview

  • Create a backup program using Cloudflare Workers
  • Trigger manually or via CRON
  • Ensure uniqueness with endpoint + id + revisedAt
  • Data stored without duplication through snapshot management
  • Media files backed up together

Articles stored in Cloudflare D1, media files in Cloudflare R2.

Back up article data and images together.

A recovery-ready system

Backup isn't just about taking copies—it's about being able to restore when you need it.
"I want to revert to yesterday's version" or "I accidentally deleted an article and need to recover it"
Having a system ready for these scenarios gives you real peace of mind in daily operations.

Summary

  • Build a microCMS backup system in your Cloudflare environment
  • Save articles and content together with snapshot management
  • A system where recovery is included for complete peace of mind

You know, systems built because "we needed them ourselves" tend to be surprisingly useful in actual practice.

Well then.

About the author of this article

The backbone of Liberogic's engineering division. When she hears "I wish we had something like this" or "that would be so convenient," she instantly implements it with added value using her natural ingenuity. Our company treasure with excellent communication skills and many fans among our clients—and a devoted cat lover.

Sho

Director/CTO / Chief Engineer / Representative Director of Nekoana LLC / Looks suspiciously young

Read this staff member's article

Reliable team structure and responsive project management are our strengths

At Liberogic, our experienced staff actively drive projects forward, earning high praise from clients.
We carefully assign project managers and directors to ensure smooth project execution across all phases. We prevent unnecessary cost increases from over-commitment by deploying resources strategically, and we're known for speed in project understanding, estimation, and delivery.

* Please note that we do not actively pursue on-site SES-style staffing arrangements.

You can use virtually all major project management and chat tools, including Slack, Teams, Redmine, Backlog, Asana, Jira, Notion, Google Workspace, Zoom, Webex, and more.

Are you losing out with overcomplicated infrastructure and security measures? Concerned about WordPress security?

Case Studies