collective.backup: backups for modern Plone projects
What it does
- One command.
collective-backup backupmakes an incremental backup of the database and of the blobstorage with images and files.collective-backup restorerestores the latest backup. - Snapshots. Right before a big change,
snapshotbackupmakes a full backup, separate from the regular ones. - Production data on your machine. With
zipbackupandziprestoreyou 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.envfile or in environment variables. - Docker or cron. The Docker image makes the backups on a schedule, next to the
plone/plone-backendandplone/plone-zeoimages. Without Docker,collective-backup crontabgives you the lines for cron. - Familiar scripts. If you prefer
bin/backupandbin/restore, create them withcollective-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.
