Skip to content

mortonfox/gltools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gitlab Tools

gltools is a set of scripts to do simple things with Gitlab. Currently, there is only backup_repos.rb, which downloads all of a user's repositories and produces a git bundle and a zip file for each repository.

Installation

Run bundle install to install the required gems.

You'll need to obtain an access token for the Gitlab API.

  1. After logging in on Gitlab, go to Personal Access Tokens
  2. Enter gltools in the Name field.
  3. Under Scopes, select 'api'.
  4. Click on 'Create personal access token'.
  5. Copy the access token from 'Your New Personal Access Token'.
  6. Create a file named .gltools.token in your home directory.
  7. Edit this file and add the token string only to the first line of the file.

Usage

Run the following to back up your repos:

bundle exec ruby backup_repos.rb

Releases

No releases published

Packages

No packages published

Languages