mirror of
https://github.com/clockfort/GitHub-Backup.git
synced 2025-03-16 00:00:06 +01:00
update usage info in README.markdown
This commit is contained in:
parent
ac0f18d7b3
commit
16f237a1d2
1 changed files with 21 additions and 16 deletions
|
@ -19,34 +19,39 @@ Usage
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
````
|
````
|
||||||
usage: github-backup.py [-h] [-c] [-m] [-f] [-S] [-g ARGS] [-o ORG] [-s SUFFIX] [-P PREFIX]
|
usage: github-backup.py [-h] [-v {all,public,private}]
|
||||||
[-p PASSWORD] [-t TOKEN] username backupdir
|
[-a {owner,collaborator,organization_member}] [-d]
|
||||||
|
[-q] [-m] [-f] [-g ARGS [ARGS ...]]
|
||||||
|
[-t {git,http,ssh}] [-s SUFFIX] [-p PASSWORD]
|
||||||
|
[-P PREFIX] [-o ORG]
|
||||||
|
login_or_token backupdir
|
||||||
|
|
||||||
makes a backup of all of a github user's repositories
|
makes a backup of all of a github user's repositories
|
||||||
|
|
||||||
positional arguments:
|
positional arguments:
|
||||||
username A Github username
|
login_or_token A Github username or token
|
||||||
backupdir The folder where you want your backups to go
|
backupdir The folder where you want your backups to go
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-h, --help Show this help message and exit
|
-h, --help show this help message and exit
|
||||||
-c, --cron Use this when running from a cron job
|
-v {all,public,private}, --visibility {all,public,private}
|
||||||
|
Filter repos by their visibility
|
||||||
|
-a {owner,collaborator,organization_member}, --affiliation {owner,collaborator,organization_member}
|
||||||
|
Filter repos by their affiliation
|
||||||
|
-d, --debug Show debug info
|
||||||
|
-q, --quiet Only show errors
|
||||||
-m, --mirror Create a bare mirror
|
-m, --mirror Create a bare mirror
|
||||||
-f, --skip-forks Skip forks
|
-f, --skip-forks Skip forks
|
||||||
-S, --ssh Use SSH protocol
|
-g ARGS [ARGS ...], --git ARGS [ARGS ...]
|
||||||
-g ARGS, --git ARGS Pass extra arguments to git
|
Pass extra arguments to git
|
||||||
-o ORGANIZATION, --organization ORGANIZATION
|
-t {git,http,ssh}, --type {git,http,ssh}
|
||||||
Backup Organizational repositories
|
Select the protocol for cloning
|
||||||
-p PASSWORD, --password PASSWORD
|
|
||||||
Authenticate with Github API
|
|
||||||
-P PREFIX, --prefix PREFIX
|
|
||||||
Add prefix to repository directory names
|
|
||||||
-s SUFFIX, --suffix SUFFIX
|
-s SUFFIX, --suffix SUFFIX
|
||||||
Add suffix to repository directory names
|
Add suffix to repository directory names
|
||||||
-p PASSWORD, --password PASSWORD
|
-p PASSWORD, --password PASSWORD
|
||||||
Authenticate with Github API using OAuth token
|
Authenticate with Github API
|
||||||
-t TOKEN, --token TOKEN
|
-P PREFIX, --prefix PREFIX
|
||||||
OAuth token for authentification
|
Add prefix to repository directory names
|
||||||
-o ORG, --organization ORG
|
-o ORG, --organization ORG
|
||||||
Backup Organizational repositories
|
Backup Organizational repositories
|
||||||
````
|
````
|
||||||
|
|
Loading…
Add table
Reference in a new issue