Giter VIP home page Giter VIP logo

github-backup's Introduction

Github Backup tool

Are all your repos centralized in github? Maybe it's time for a backup. Keep local copies of your repos to avoid having it all wiped out for some reason!

This is a tool / learning project to use Rust.

Quickstart

Setting up env

For this project to work, you'll need a github api token. You can check how to do this here. After creating the token and granting reading access of repos, place it at .env file.

CLI arguments

The arguments are sequential, and they are:

  • output_path : Where the zipped repos are going to be placed. Defaults to ./backups
  • --allow-others_repos : This allows or not to backup repos that were not created by you, but are in your "repositories" page. Defaults to false

Example valid running commands are:

./github-backup ./backups --allow-others_repos ./github-backup ./backups ./github-backup

Note that you cant pass the allow-others-repos without passing the output_path.

Running the Binary

If you're not a rust person and do not pretend to change any of this code, simply run the executable placed on root.

./github-backup

Running with Cargo

If you are a rust person and pretend to change the code, you can run it with cargo!

cargo run

and pass the arguments if wanted.

github-backup's People

Contributors

lorenzobattistela avatar

Watchers

 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.