mseninc / github-gitlab-backup

Backup GitHub repos to on-premise GitLab
0 stars 0 forks source link

GitHub to GitLab auto-backup

Summary

Usage

Install

Just run npm install.

npm install

Setup .env

cp .env.sample .env
vi .env

Set ALL variables in .env.

Start backup

npm start

is as same as below.

node index.js

clean mode

--clean mode will ignore the GitHub repository's previous state.

node index.js --clean

force mode

--force mode will ignore the previous timestamp to backup all repos forcibly.

node index.js --force

dry mode

--dry mode will check all of target repos but neither delete projects nor import repos.

node index.js --dry

License

Copyright (c) 2019 MESN Inc.

Released under the MIT license