10000 GitHub - hooyao/github-org-backup-tool: 一个备份github上组织中所有仓库的简单工具
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

hooyao/github-org-backup-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github-org-backup-tool

一个备份github上组织中所有仓库的简单工具, 在你的组织上实体名单前, 抢救你的组织的所有代码

使用指南

这个工具需要使用Github的Personal access tokenSSH Key. Personal access token是必须的, 这个链接 会创建一个Personal access token,带有仓库的访问权限 和创建SSH Key的权限. 如果不赋予SSH Key的创建权限, 你需要使用自己本地的SSH Key.

使用容器

挂在本地工作的SSH Key到容器, 并把本地的~/BackupTool作为备份目录

 docker run --rm -it -v ~/.ssh:/root/.ssh:ro -v ~/BackupTool:/root/BackupTool hooyao/github-backup-tool:latest \
  sh ./start.sh  \
  -t personal_access_token \
  # don't change /root/BackupTool, it's the mounting point inside docker
  -d /root/BackupTool \ 
  -o organization_name_1

使用临时的SSH Key,这需要Personal access token中带有创建SSH Key的权限, 并且你的组织没有诸如SSO之类的权限设置

 docker run --rm -it -v ~/BackupTool:/root/BackupTool hooyao/github-backup-tool:latest \
  sh ./start.sh  \
  -t personal_access_token \
  # don't change /root/BackupTool, it's the mounting point inside docker
  -d /root/BackupTool \ 
  -o organization_name_1

About

一个备份github上组织中所有仓库的简单工具

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0