Skip to content
This repository

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

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 Rakefile
Octocat-spinner-32 Readme.markdown
Octocat-spinner-32 backup-gitbucket.gemspec
Octocat-spinner-32 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.