-
-
Notifications
You must be signed in to change notification settings - Fork 11
Examples
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
raw_git_urls: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
username: your-gitlab-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
raw_git_urls: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: gitlab
server:
domain: gitlab.com
protocol: https
username: your-forgejo-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
raw_git_urls: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: forgejo
server:
domain: codeberg.org
protocol: https
username: your-bitbucket-username
token: [your-app-password]
workspace: you-bitbucker-workspace
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
raw_git_urls: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: bitbucket
server:
domain: bitbucket.org
protocol: https
NOTE: For BitBucket you need to also add the
workspace
key which is not required for GitHub or GitLab
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
cron: * * * * *
platform: github
server:
domain: github.com
protocol: https
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: true
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: ["repo1", "repo2"]
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: ["repo1"]
exclude_repos: []
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
NOTE: In the above example if you passed
exclude_repos
as well then it will be ignored since you have passedinclude_repos
. So an example like below will still have the same effect as above and only "repo1" will be backed up.
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: ["repo1"]
exclude_repos: ["repo2", "repo3"]
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: ["org1", "org2"]
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
Similarly, you can exclude repositories from specific organizations:
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: []
include_orgs: []
exclude_orgs: ["org1", "org2"]
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
NOTE: When you are using
exclude_orgs
option, it means that all organization repositories from the organizations mentioned in the list will be excluded from the backup. If you want to exclude only specific repositories from the organizations then you can useexclude_repos
option.
To include all repos which start with repo
, you can use the following configuration:
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: ["repo*"]
exclude_repos: []
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
Same way, you can exclude all repos which start with repo
:
username: your-github-username
token: [your-personal-access-token]
include_wiki: true
include_repos: []
exclude_repos: ["repo*"]
include_orgs: []
exclude_orgs: []
backup_dir: /path/to/backup
include_forks: false
clone_type: bare
concurrency: 5
platform: github
server:
domain: github.com
protocol: https
include_wiki: true
raw_git_urls: ['/~https://github.com/selfhst/icons']
backup_dir: /path/to/backup
clone_type: bare
concurrency: 5