Skip to main content

This package is backupp repository from

Project description


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

Simple usage

Modify buildout.cfg

parts =

recipe = c2.recipe.bitbucketbk
username = xxxxxxxxxxxxx
password = xxxxxxxxxxxxxxxxxx
location = /backups
ignore_project =
isseu_backup_count = 3

Run the buildout

bin/buildout -N

You can use backup scripts


You will see backups in /backups.

Cron job integration

For example

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


issues backup

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

Detailed Documentation

Supported options

The recipe supports the following options:

username of
password of
backup location default : buckups
option Listing project name, if do you have no backup project
default 3 Number of backup data for issue

Example usage

We’ll start by creating a buildout that uses the recipe:

>>> write('buildout.cfg',
... """
... [buildout]
... parts = bitbucketbk
... [bitbucketbk]
... recipe = c2.recipe.bitbucketbk
... username = %(username)s
... password = %(password)s
... location = %(location)s
... """ % { 'username' : 'value1', 'password' : 'value2', 'location' : 'value3'})

Running the buildout gives us:

>>> print 'start', system(buildout)
Installing bitbucketbk.
Unused options for bitbucketbk: 'location' 'password' 'username'.


Calling bin/bitbucketbk

>>> import sys
>>> write('bin', 'bitbucketbk',
...       "#!%s\nimport sys\nprint ' '.join(sys.argv[1:])" % sys.executable)
>>> dontcare = system('chmod u+x bin/bitbucketbk')

By default, backups are done in var/bitbucketbk:

>>> print system('bin/bitbucketbk')


Manabu TERADA, Author

Change history

1.0b7 (2012-09-04)

  • modify bug fixed for more issue function [Manabu TERADA]

1.0b6 (2012-09-02)

  • modify bug fixed for getting issue limit number, max to has issues [Manabu TERADA]

1.0b5 (2012-08-26)

  • modify bugs for using api [Manabu TERADA]
  • modify getting issue limit number of from 15 to 5000 [Manabu TERADA]

1.0b4 (2012-08-26)

  • modify bugs for getting issue comments [Manabu TERADA]

1.0b3 (2012-08-26)

  • modify buckup function comment of issue [Manabu TERADA]
  • any number of issue backup data [Manabu TERADA]

1.0b2 (2012-08-25)

  • Backup of issues by Excel data, but ignore comment yet [Manabu TERADA]
  • Ignore Don’t get repo, if main_branch is null for maybe change API spec which is main_branch. [Manabu TERADA]

1.0b1 (2012-01-17)

  • Adding property ‘ignore_project’ [Manabu TERADA]

1.0a2 (2012-01-08)

  • Don’t get repo, if main_branch is null. [Manabu TERADA]

1.0a1 (2012-01-08)

  • Created recipe with ZopeSkel [Manabu TERADA]
  • Created base function & supported hg only, (no supporting git yet) [Manabu TERADA]


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for c2.recipe.bitbucketbk, version 1.0b7
Filename, size File type Python version Upload date Hashes
Filename, size c2.recipe.bitbucketbk-1.0b7.tar.gz (8.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page