Skip to main content

Schedule/Run Gitlab Backups

Project description

Gitlab Backup Manager (GLBM)

Gitlab Backup Manager is a tool to help manage Backups of Gitlab in one place.

Main Backup = gitlab-rake gitlab:backup:create
Backup Config = gitlab-ctl backup-etc


Getting started

Installation (Preferred)

$ pip installl gitlab_bm

After install run the following to see default opitions:

$ glbm
Usage: glbm [OPTIONS] COMMAND [ARGS]...

  Gitlab Backup Manager (GLBM) Ver. (x.x.x)

Options:
  --version  Show application Version
  --help     Show this message and exit.

Commands:
  backup            Run Main Backup
  backup-etc        Run Backup Config and upload to S3
  complete          Run backup, backup_etc, upload to S3
  delete-files      Delete old files from S3 based on (X) days to keep

Current Limitations

  • Only supports Slack Notifications
  • Manual setup of Main Backup in gitlab.rb still needed
  • (Scheduling of jobs) - Need to manually setup.

Development

Want to contribute? Great! No specifics at this point. Just basic GitHub Fork and Pull request.
For further info, see github guide on contributing to opensource project.

After cloning your Forked branch locally, and installing Poetry, you can run the following to setup dev env and test:

$ poetry install

Then to run, do the following:

$ poetry run glbm

License

MIT LICENSE.txt

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gitlab_bm-0.1.0.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

gitlab_bm-0.1.0-py3-none-any.whl (9.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page