Personal tools
You are here: Home Reinout van Rees' weblog Easy backups with buildout

Easy backups with buildout

by Reinout van Rees — last modified Jul 04, 2008 11:45 AM
Filed Under:

I finally got around to copying the backup functionality of ye olde instancemanager to a buildout recipe. The result is a real handy recipe: collective.recipe.backup .

bin/repozo is a zope script to make backups of your Data.fs. Looking up the settings can be a chore. And you have to pick a directory where to put the backups. collective.recipe.backup provides sensible defaults for your common backup tasks. Making backups a piece of cake is important!

  • bin/backup makes a backup.
  • bin/restore restores the latest backup.
  • bin/snapshotbackup makes a full backup, separate from the regular backups. Handy for copying the current production database to your laptop or right before a big change in the site.

Just read the pypi page, especially the section on supported options, though you get perfectly decent backups by adding backup to your buildout's parts list and adding the following two lines:

  [backup]
  recipe = collective.recipe.backup

That's it!

Document Actions

Repozo, not repoze :)

Posted by http://limi.myopenid.com/ at Jul 03, 2008 09:56 PM
I think you wrote 'bin/repoze' (Repoze is the WGSI repackaging of Zope) instead of 'bin/repozo' (which is the backup script)

An easy typo to make. :)

And the error is also on the PyPI page

Posted by http://limi.myopenid.com/ at Jul 03, 2008 10:57 PM
Just FYI. :)

repoze/repozo typo fixed

Posted by Reinout van Rees at Jul 04, 2008 11:40 AM
I just did a search/replace, so it is fixed now in the code. Whatever got into those guys to name it repoze when there's also a repozo... :-)

iw.recipe.backup

Posted by http://tarek.ziade.myopenid.com/ at Jul 03, 2008 11:12 PM
We created a similar recipe some time ago: http://pypi.python.org/pypi/iw.recipe.backup

I need to check yours, maybe we could merge

Different kind of backup

Posted by Reinout van Rees at Jul 04, 2008 11:43 AM
Your recipe seems to zip up the whole buildout directory. My recipe (or rather, the repackaged existing instancemanager functionality) only backs up the Data.fs with repozo.

One area I haven't looked at that's obviously handled by zipping up the whole thing: blob files stored on filesystem.