skorotkiewicz / gitlab-repos-backup

Backup all of your Gitlab repositories to local filesystem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gitlab backup all your repositories

Get a personal token: https://gitlab.com/profile/personal_access_tokens

Create a file token.json with the structure

{
"token": "YOUR_GITLAB_TOKEN",
"server": "gitlab.com",
"user": "YOUR_GITLAB_USERNAME"
}

Run the following commands

npm install
npm start

Default will download all the repositories of a given user
To get ALL the repos from server (useful only for your own gitlab server),
change it:

`https://${server}/api/v4/users/${gituser}/projects?per_page=100&page=${page}`,

to

`https://${server}/api/v4/projects?per_page=100&page=${page}`,

About

Backup all of your Gitlab repositories to local filesystem

License:MIT License


Languages

Language:JavaScript 100.0%