Skip to content

Commit ea936aa

Browse files
committed
Documentation.
1 parent 4aafd43 commit ea936aa

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

docs/02_federation.mkd

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
*SINCE 0.6.0*
44

5-
A Gitblit federation is a mechanism to clone repositories and keep them in sync from one Gitblit instance to another. Federation can be used for automated backup of your repositories or may be used to initially clone groups of repositories to developer workstations. If you are/were a Subversion user you might think of this as [svn-sync](http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.html), but better.
5+
A Gitblit federation is a mechanism to clone repositories and keep them in sync from one Gitblit instance to another. Federation can be used to maintain a mirror of your Gitblit instance, to aggregate repositories from developer workstations, or to initially clone groups of repositories to developer workstations. If you are/were a Subversion user you might think of this as [svn-sync](http://svnbook.red-bean.com/en/1.5/svn.ref.svnsync.html), but better.
66

77
If your Gitblit instance allows federation and it is properly registered with another Gitblit instance, each of the *non-excluded* repositories of your Gitblit instance can be mirrored, in their entirety, to the pulling Gitblit instance. You may optionally allow pulling of user accounts and backup of server settings.
88

99
The federation feature should be considered a security backdoor and enabled or disabled as appropriate for your installation.<br/>
1010
Please review all the documentation to understand how it works and its limitations.
1111

12+
![block diagram](fed_aggregation.png "Gitblit Federation Aggregation")
13+
1214
### Origin Gitblit Instance Requirements
1315

1416
- *git.enableGitServlet* must be true, all Git clone and pull requests are handled through Gitblit's JGit servlet
@@ -236,6 +238,8 @@ These examples would be entered into the `gitblit.properties` file of the pullin
236238

237239
#### (Nearly) Perfect Mirror Example
238240

241+
![block diagram](fed_mirror.png "Gitblit Mirror")
242+
239243
This assumes that the *token* is the *ALL* token from the origin gitblit instance.
240244

241245
The repositories, example1_users.properties, and example1_gitblit.properties will be put in *git.repositoriesFolder* and the origin user accounts will be merged into the local user accounts, including passwords and all roles. The Gitblit instance will also send a status acknowledgment to the origin Gitblit instance at the end of the pull operation. The status report will include the state of each repository pull (EXCLUDED, SKIPPED, NOCHANGE, PULLED, MIRRORED). This way the origin Gitblit instance can monitor the health of its mirrors.

docs/fed_aggregation.png

21 KB
Loading

docs/fed_mirror.png

6.74 KB
Loading

docs/federation.odg

12.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)