1. Atsushi Odagiri
  2. c2.recipe.bitbucketbk

Source

c2.recipe.bitbucketbk /

Filename Size Date modified Message
c2
172 B
47 B
278 B
23 B
62 B
873 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

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