Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Requirement

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

Information

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)

Detailed Documentation

Supported options

The recipe supports the following options:

username

username of bitbucket.org

password

password of bitbucket.org

location

backup location default : buckups

ignore_project

option Listing project name, if do you have no backup project

isseu_backup_count

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)
start...
Installing bitbucketbk.
Unused options for bitbucketbk: 'location' 'password' 'username'.
<BLANKLINE>

Backup

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')
...

Contributors

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]

Download

Metadata

Release files for c2.recipe.bitbucketbk 1.0b7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for c2.recipe.bitbucketbk 1.0b7
File Size Uploaded Provenance Actions
c2.recipe.bitbucketbk-1.0b7.tar.gz 8.2 kB Without provenance Details for c2.recipe.bitbucketbk-1.0b7.tar.gz

Release files / c2.recipe.bitbucketbk-1.0b7.tar.gz

Download URL c2.recipe.bitbucketbk-1.0b7.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
03c6ad7338aa83892e199552474f23ab992714ecba6884df57d0d10cacee46b8
BLAKE2b-256 checksum
How to use checksums
82020b217218a283b3effffbc22aa98da4f565de329bff85c774b338304aea13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for c2.recipe.bitbucketbk 1.0b7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page