qvl / ghbackup Goto Github PK
View Code? Open in Web Editor NEWEmbarrassingly simple GitHub backup tool
Home Page: https://qvl.io/ghbackup
License: MIT License
Embarrassingly simple GitHub backup tool
Home Page: https://qvl.io/ghbackup
License: MIT License
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)
Test with some user with too many repos.
Maybe limit to 10 in parallel.
Yes. NPM.
systemd
+ sleepto
When qvl/qvl.io#1 is done, the import path can be changed to go get qvl.io/github-backup
.
Have to figure out how to do this first
Can generate for example usage info as described here: https://npf.io/2014/06/autogenerate-docs-with-this-one-dumb-trick/
Logging system (like journalctl) should handle these
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).
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.
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.
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.
also display a warning
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.
-all flag to include non-owner repos
Hi
Apparently, ghbackup doesn't support LFS?
Thanks
The readme looks so empty
ghbackup is not simple to test, but should at least check the results in the file system after running the test.
Since names are unique, we don't need a flag.
If user not found, try if it's an org before giving up.
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
.
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?
Assert that git
is in path
Start with Ubuntu
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?
After #8 is done
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.