Git Mirroring Into Gitlab. Project is a collection of bash scripts that works with https://github.com/samrocketman/gitlab-mirrors for easy usage of adding new mirrors to your Gitlab.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Facinorous
46521b3293
|
4 years ago | |
---|---|---|
removemelater | 4 years ago | |
.gitignore | 4 years ago | |
README.md | 4 years ago | |
setup | 4 years ago | |
setup.conf | 4 years ago |
README.md
Yes, I know this README sucks. This isn't the final version. This is just to give you a basic understanding of how easy it will be to run this shit.
== SET UP ==
- Create a user in your gitlab named
gitmirror
- Create a new user on your linux system, probably best to name it
gitmirror
too - Clone this repo into your new users home directory
~
- Edit setup.conf to your desires
- Run
./setup
to begin the set up process - Copy ssh key shown in terminal at the end of setup script into your gitlab users account
- Run
./creategroups
to make all the groups in gitlab <-- this is a WIP script, for now you must make your own in gitlab under the user you made before - Run
./setcron
to add the mirror cron jobs to the users cron table
== ADDING MIRRORS ==
Run ./mirror
to set up a mirror
If you at any time want to add more groups you can mirror to, simply add them to the setup.conf file and rdo the set up process again.
== UPDATING DEPENDANCIES ==
Use ./update
to update your gitlab-mirror dependancy
== FILE STRUCTURE ==
/home/gitmirror/gitmirrors-bs
├── mirrormanagement
│ ├── Group1
│ │
│ └── Group2
│
└── repositories
├── Group1
│ ├── git
│ ├── gitlabhq
│ ├── gitlab-shell
│ ├── nsca-ng
│ ├── python-gitlab
│ ├── ruby
│ └── systems-svn
└── Group2
└── GitLab Enterprise Edition