Metadata-Version: 1.0
Name: c2.recipe.bitbucketbk
Version: 1.0a1
Summary: This package is backupp repository from bitbucket.org
Home-page: http://www.cmscom.jp
Author: Manabu TERADA
Author-email: terada@cmscom.jp
License: ZPL
Description: Requirement
        ================
        
        This recipe supports Python 2.6+, because using 'json' module.
        
        
        Information
        ================
        
        - Code repository: https://bitbucket.org/cmscom/c2.recipe.bitbucketbk
        - Questions and comments to terada@cmscom.jp
        - Report bugs at https://bitbucket.org/cmscom/c2.recipe.bitbucketbk/issues
        
        
        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
        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
        
        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.0a1 (xxxx-xx-xx)
        ------------------
        
        - Created recipe with ZopeSkel [Manabu TERADA]
        - Created base function & supported hg only, (no supporting git yet) [Manabu TERADA]
        Download
        ********
        
Keywords: bitbucket backup
Platform: UNKNOWN
Classifier: Framework :: Buildout
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: Zope Public License
