Easy backups with buildoutΒΆ

Tags: instancemanager, plone, buildout

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!

(Old imported comments)
"Different kind of backup" by reinout on 2008-07-04 11:43:24
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.
"repoze/repozo typo fixed" by reinout on 2008-07-04 11:40:09
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" by http://tarek.ziade.myopenid.com/ on 2008-07-03 23:12:58
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
"And the error is also on the PyPI page" by http://limi.myopenid.com/ on 2008-07-03 22:57:17
Just FYI. :)
"Repozo, not repoze :)" by http://limi.myopenid.com/ on 2008-07-03 21:56:40
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. :)
 
vanrees.org logo

Reinout van Rees

My name is Reinout van Rees and I program in Python, I live in the Netherlands, I cycle recumbent bikes and I have a model railway.

Weblog feeds

Most of my website content is in my weblog. You can keep up to date by subscribing to the automatic feeds (for instance with Google reader):