Skip to content
Snippets Groups Projects
Commit 53daaac2 authored by Sam Gleske's avatar Sam Gleske
Browse files

Update documtation for new features.

Rewrote some of the docs as well to be more eloquent.
parent f47ea9d4
No related branches found
No related tags found
No related merge requests found
...@@ -6,10 +6,11 @@ The [gitlab-mirrors](https://github.com/sag47/gitlab-mirrors) project is designe ...@@ -6,10 +6,11 @@ The [gitlab-mirrors](https://github.com/sag47/gitlab-mirrors) project is designe
## Features ## Features
* Mirror git and SVN repositories. * Mirror git and SVN repositories.
* When adding a mirror if the project doesn't exist in GitLab then `add_mirrror.sh` will automatically create it. * When adding a mirror if the project doesn't exist in GitLab it will be auto-created.
* Specify initial project defaults when a project is created (e.g. issues enabled, wiki enabled, etc.) * Set project creation defaults (e.g. issues enabled, wiki enabled, etc.)
* Update a single mirror with the `update_mirror.sh` command. * Update a single mirror.
* Update all known mirrors with the `git-mirrors.sh` command. Useful for adding to a `cron` job for updating all repositories on a regular schedule. * Update all known mirrors.
* List all known mirrors.
--- ---
...@@ -23,15 +24,16 @@ The [gitlab-mirrors](https://github.com/sag47/gitlab-mirrors) project is designe ...@@ -23,15 +24,16 @@ The [gitlab-mirrors](https://github.com/sag47/gitlab-mirrors) project is designe
--- ---
# License # License
Created by Sam Gleske under [MIT License](LICENSE). This project is meant to temporarily fill in a gap left by GitLab for managing remote git mirrors. See the following user voice topics which made me create this project in the mean time. Created by Sam Gleske under [MIT License](LICENSE).
* [Mirror git/svn into repo.][3]
* [Feature request -- Multi-Master mirroring][4]
--- ---
## References ## References
This project is meant to temporarily fill in a gap left by GitLab for managing remote repository mirrors (namely git and svn). See the following user voice topics which enabled me to create this project in the mean time.
* [Mirror git/svn into repo.][3]
* [Feature request -- Multi-Master mirroring][4]
* [Git mirror][5] * [Git mirror][5]
* [Git push all branches][6] * [Git push all branches][6]
* [Git update mirror][7] * [Git update mirror][7]
...@@ -40,6 +42,8 @@ Created by Sam Gleske under [MIT License](LICENSE). This project is meant to te ...@@ -40,6 +42,8 @@ Created by Sam Gleske under [MIT License](LICENSE). This project is meant to te
* [Why git can't clone into a bare repository][10] * [Why git can't clone into a bare repository][10]
* [How to convert a git repository from normal to bare][11] * [How to convert a git repository from normal to bare][11]
This project will still be useful after repository mirror support is native in GitLab because it allows admins to mirror massive amounts of repositories in an automated fashion. When native mirror support is included this project will likely be refactored into a script to automate adding mirrors via the API.
[1]: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/README.md [1]: https://github.com/gitlabhq/gitlabhq/blob/master/doc/api/README.md
[2]: https://github.com/sag47/python-gitlab [2]: https://github.com/sag47/python-gitlab
[3]: http://feedback.gitlab.com/forums/176466-general/suggestions/4286666-mirror-git-svn-into-repo- [3]: http://feedback.gitlab.com/forums/176466-general/suggestions/4286666-mirror-git-svn-into-repo-
......
...@@ -18,6 +18,12 @@ Create an SVN repository mirror. ...@@ -18,6 +18,12 @@ Create an SVN repository mirror.
The `--authors-file` option is an optional argument. The `--authors-file` option is an optional argument.
### List all known mirrors
su - gitmirror
cd gitlab-mirrors
./ls-mirrors.sh
### Delete a mirror ### Delete a mirror
su - gitmirror su - gitmirror
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment