Coder Social home page Coder Social logo

ghbackup's People

Contributors

bradleyfalzon avatar caarlos0 avatar danieldiekmeier avatar jorinvo avatar svyotov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ghbackup's Issues

Error running command

Hi

I get errors when running the command. Also, the Slack notification doesn't work as expected. It's just a message but it sends the message always and doesn't check if the script was executed (and as such the backup) well or not.

So nothing happend an I tried a manual execution with these errors (personal info removed):

error running command [git clone --mirror --no-checkout --progress [url] /srv/github-backup/twixlmedia/[repo].git] (git):  (exec: "git": executable file not found in $PATH)

Process in batches

Test with some user with too many repos.
Maybe limit to 10 in parallel.

private repos

Support private repos.
It's not as simple as it seems to fetch private repos from the Github API.
Also, when cloning and pulling we need to use the credentials for it.
The authentication is already working (2d476cf).

Add some kind of indicator

Currently, it does its thing and then finished.

Maybe add some kind of output what it's currently doing? Could be optional behind a flag.

Add optional summary output

Should hide this with a flag, but since I send myself a Slack notification whenever ghbackup runs, it would be nice to have some info like:
Repositories: X new, Y updated, Z unchanged. Total commits: K.

Move functionality to a different package

CLI should only care about providing a command line interface.
The library should also be callable from other Go code.
Could should be testable without testing CLI.

Handle conflicting repository names

The simplest solution would be to always use the full path for each repository (qvl/ghbackup instead of only ghbackup).
When fetching only one account this could be confusing though.

Logo

The readme looks so empty

Improve integration test

ghbackup is not simple to test, but should at least check the results in the file system after running the test.

Support orgs

Since names are unique, we don't need a flag.
If user not found, try if it's an org before giving up.

Rewrite release.sh in Go

Shouldn't be too much work. All required tools are in the standard library.
Then it would be platform independent and could be executed via go run.

Faulty statement about "Unchanged" repos

The Verbose output of the backup always returns this:

done: 0 new, 0 updated, 44 unchanged, 0 total objects

But that's not correct. What do you need from us to investigate this?

git remote update --progress gives error: unknown option `progress'

On using ghbackup i get the following error, which i can reproduce on switching to the directory and issuing the command manually:

github/Strubbl/guayadeque.git[BARE:master]$ LANG=en git remote update --progress
error: unknown option `progress'
usage: git remote update [<options>] [<group> | <remote>]...

    -p, --prune           prune remotes after fetching
github/Strubbl/guayadeque.git[BARE:master]$ git version
git version 2.14.2

Is there any requirement i am missing? Wrong git version?

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.