Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a bare-bones working example somewhere? #63

Closed
afilbert opened this issue Apr 20, 2017 · 6 comments
Closed

Is there a bare-bones working example somewhere? #63

afilbert opened this issue Apr 20, 2017 · 6 comments

Comments

@afilbert
Copy link

I've been poking around trying to get this to work and I keep getting the "too few arguments" error. Digging into the source code, now, but a plain ol' example would be nice addition to the readme. Thanks.

@josegonzalez
Copy link
Owner

josegonzalez commented Apr 20, 2017

I'd love a documentation pull request:

github-backup WhiteHouse \                # for the whitehouse github user
    --organization \                      # which is a github organization, not a regular user
    --repositories \                      # backup the repositories
    --output-directory /tmp/white-house \ # to a tmp folder (will be created if it doesn't exist)
    --token $ACCESS_TOKEN                 # with the specified access token

@mumblez
Copy link
Contributor

mumblez commented May 30, 2017

always reports 'too few arguments', can you show a working example? (the above doesn't work)

@josegonzalez
Copy link
Owner

josegonzalez commented May 30, 2017

That example worked fine for me, and it seems that @afilbert confirmed it.

export ACCESS_TOKEN=SOME-GITHUB-TOKEN
github-backup WhiteHouse --token $ACCESS_TOKEN --organization --output-directory /tmp/white-house --repositories
Create output directory /private/tmp/white-house
Backing up user WhiteHouse to /private/tmp/white-house
Retrieving repositories
Filtering repositories
Backing up repositories
^C

Seems to work fine.

@mumblez
Copy link
Contributor

mumblez commented May 30, 2017

thanks

@josegonzalez
Copy link
Owner

Would you be interested in making a PR to add that example to our documentation?

@mumblez
Copy link
Contributor

mumblez commented May 30, 2017

#65
Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants