https://github.com/mortonfox/gltools
Utility scripts for GitLab
https://github.com/mortonfox/gltools
backup backup-script gitlab gitlab-backup
Last synced: 2 months ago
JSON representation
Utility scripts for GitLab
- Host: GitHub
- URL: https://github.com/mortonfox/gltools
- Owner: mortonfox
- Created: 2019-01-10T04:43:19.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2021-04-15T17:03:31.000Z (about 5 years ago)
- Last Synced: 2025-04-07T23:47:13.025Z (about 1 year ago)
- Topics: backup, backup-script, gitlab, gitlab-backup
- Language: Ruby
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://gitlab.com/profile/personal_access_tokens)
1. Enter ``gltools`` in the Name field.
1. Under Scopes, select 'api'.
1. Click on 'Create personal access token'.
1. Copy the access token from 'Your New Personal Access Token'.
1. Create a file named ``.gltools.token`` in your home directory.
1. 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:
```sh
bundle exec ruby backup_repos.rb
```