Source

c2.recipe.bitbucketbk /

Filename Size Date modified Message
c2
172 B
141 B
373 B
23 B
62 B
929 B
2.0 KB
112 B
2.0 KB

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

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