collective.backup: backups for modern Plone projects

New Plone projects look different from how they used to. You create them with cookieplone, install the backend with uv, and in production everything runs in Docker containers. Buildout is gone, and with it the trusted bin/backup. That is why there is now collective.backup: backups of the database and the files of a Plone site, with sensible defaults.

collective.backup, backups for Plone: a card with a database and the command uv run collective-backup backup

What it does

  • One command. collective-backup backup makes an incremental backup of the database and of the blobstorage with images and files. collective-backup restore restores the latest backup.
  • Snapshots. Right before a big change, snapshotbackup makes a full backup, separate from the regular ones.
  • Production data on your machine. With zipbackup and ziprestore you copy fresh production data to your development environment.
  • Settings in pyproject.toml. Everything is in [tool.collective-backup]. What differs per server, like where the backups go, goes in a .env file or in environment variables.
  • Docker or cron. The Docker image makes the backups on a schedule, next to the plone/plone-backend and plone/plone-zeo images. Without Docker, collective-backup crontab gives you the lines for cron.
  • Familiar scripts. If you prefer bin/backup and bin/restore, create them with collective-backup generate.

The work of Maurits van Rees

collective.backup is not a fresh start. It is based on collective.recipe.backup, the buildout recipe that Plone sites have used for their backups since 2008. Reinout van Rees started it in 2008, together with Maurits van Rees, both at Zest Software at the time. Maurits has been its main developer and maintainer ever since: in eighteen years he made almost sixty releases. Everything he learned in that time about repozo, the blobstorage and safely restoring a site is in collective.backup too.

We mainly made it fit for projects without buildout. The real work is Maurits's. Thank you, Maurits!

Try it

collective.backup 1.0.0 is on PyPI. It works with Plone 6.0, 6.1 and 6.2 and with Python 3.10 to 3.14. Let us know how it works for you.