Skip to content
/ BackupHub Public

A cron-able script that will mirror all repositories of central git hub (currently supports GitLab).

License

Notifications You must be signed in to change notification settings

nckz/BackupHub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BackupHub

A cron-able script that will mirror all repositories of central git hub (currently supports GitHub and GitLab).

Requirements

  1. SSH keys deployed to the backup host machine.
  2. An API token for the target website.
  3. python 3 and git.

Crontab

A weekly backup of your GitLab initiated by the cron at 3am each Saturday would look something like this (assuming BackupHub.py is in your PATH):

0 3 * * 6 BackupHub.py --path ~/backup --token <your-gitlab-api-token> --website http://gitlab.com --move-aside --ignore-errors >> ~/backup/BackupHub.log

or for GitHub:

0 3 * * 6 BackupHub.py --path ~/backup --github --token <your-github-api-token> --move-aside --ignore-errors >> ~/backup/BackupHub.log

About

A cron-able script that will mirror all repositories of central git hub (currently supports GitLab).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages