Giter VIP home page Giter VIP logo

backup-on-the-go's Introduction

Backup On The Go

RubyGems | RDocs

Back up (or mirror) your GitHub repositories to BitBucket.

Install

gem install backup_on_the_go

Run Locally

Shortcut:

Back up your personal repositories (will back up your repositories to BitBucket with a prefix of backup-on-the-go-):

backup-on-the-go user:your_user_name

Back up your personal repositories to a different account on BitBucket:

backup-on-the-go github_user:user_name_on_github bitbucket_user:user_name_on_github

Back up your organization repositories:

backup-on-the-go user:your_user_name github_repos_owner:organization_name bitbucket_repos_owner:team_name

For more options, see the parameters of BackupOnTheGo.backup.

Run in the Cloud

You can deploy to some cloud services to run the backup timely.

Deploy to Heroku

If you are new to Heroku, first go to Heroku website to create an account, install Heroku Toolbelt, and run heroku login to login.

Run the following command to obtain the pre-prepared files for deploying:

git clone -b heroku git://github.com/xuhdev/backup-on-the-go.git
cd backup-on-the-go
bundle
heroku create

Then edit backup.rb to configure your backup. After configuring, you may wanna run foreman start to test locally. Then:

git commit -a -m "My initial backup commit."
git push heroku heroku:master

NOTE: Don't push to any public repositories, since your password is there!

At last, you need to scale your dyno formation in order to run the backup dyno instead of the web dyno:

heroku scale web=0 worker=1

Done!

Real World Examples

For a real world example, you can check my backup BitBucket Account. For another example of backing up organizations, see EditorConfig on GitHub and BitBucket.

githalytics.com alpha

backup-on-the-go's People

Contributors

xuhdev avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.