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
Updated readme
4 years ago
removemelater Updated readme 4 years ago
.gitignore Update gitginore 4 years ago
README.md Updated readme 4 years ago
setup repository clean up, moved all scripts to setup script to be generated on first run. Still needs to be tested, probably doesnt work. 4 years ago
setup.conf repository clean up, moved all scripts to setup script to be generated on first run. Still needs to be tested, probably doesnt work. 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 ==

  1. Create a user in your gitlab named gitmirror
  2. Create a new user on your linux system, probably best to name it gitmirror too
  3. Clone this repo into your new users home directory ~
  4. Edit setup.conf to your desires
  5. Run ./setup to begin the set up process
  6. Copy ssh key shown in terminal at the end of setup script into your gitlab users account
  7. 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
  8. 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