Overview

Requirement

This recipe supports Python 2.6+, because using 'json' module.

Simple usage

Modify buildout.cfg

parts =
   ...
   bitbucketbk

[bitbucketbk]
recipe = c2.recipe.bitbucketbk
username = xxxxxxxxxxxxx
password = xxxxxxxxxxxxxxxxxx
location = /backups
ignore_project =
    xxxxxx1
    xxxxxx2
isseu_backup_count = 3

Run the buildout

bin/buildout -N

You can use backup scripts

bin/bitbucketbk

You will see backups in /backups.

Cron job integration

For example

[backupcronjob]
recipe = z3c.recipe.usercrontab
times = 0 12 * * *
command = ${buildout:directory}/bin/bitbucketbk

TODO

issues backup

  • adding color on Excel data, (eg. new is RED)