Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Backup all your GitHub and Bitbucket repos with minimal configuration
Ruby
branch: master
Failed to load latest commit information.
bin
lib Merge branch 'master' of github.com:jbraeuer/backup-gitbucket
spec
.gitignore Ignore .gems and .debs
LICENSE.txt
Rakefile
Readme.markdown Add remark about tests.
backup-gitbucket.gemspec Version 0.2.0.
config.yaml.sample

Readme.markdown

Backup GitBucket - Backup all your GitHub and BitBucket repositories

Introduction

backup_gitbucket.rb is a tiny Ruby-Script to backup all your GitHub and/or BitBucket repositories. It uses the API to figure out the list of all repos (your's and organizational repos).

Git repositories are cloned in --mirror mode. So they will include all remote branches.

Why?

I like GitHub's social features and BitBucket's private repos. But having a local backup feels nice too ;-)

How to use?

  • gem install excon
  • gem install json
  • edit config.yaml.sample to match your settings.
  • ./bin/backup-gitbucket config.yaml

Known issues

The script works fine for me, but it currently lacks proper error-reporting. (Pull requests welcome.)

Tests?

I currently play with rspec. Execute the tests with rspec spec --color --format doc

What is the License?

Licensed under Apache License Version 2.0.

Enjoy, Jens

Something went wrong with that request. Please try again.