git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Øyvind A. Holm" <sunny@sunbase.org>
To: git@vger.kernel.org
Subject: Announcing Gitspread - Spread Git commits to several servers with a single push
Date: Mon, 25 Apr 2011 00:15:20 +0200	[thread overview]
Message-ID: <BANLkTikuCfnSuY2r+YzWu1PegP3baniOjA@mail.gmail.com> (raw)

A project is often stored on several hosting services like Gitorious,
GitHub, repo.or.cz or similar for backup purposes. Ideally, all these
repositories should be updated at the same time when pushing. If you’re
using a slow Internet connection, like a mobile connection from a
laptop, this process tends to be rather slow because the commits have to
be pushed several times over a slow connection. Gitspread aims to solve
this by pushing the commits once to a server with a fast connection, and
pushing the commits from there to all the defined remotes.

Setup
-----

- Create a directory on a server with a fast connection where multiple
  repositories can be stored
- Create a bare repository for each project under that directory
- Copy the post-receive hook script to the hooks/ directory in the
  repositories
- Define all necessary remotes using SSH push URLs
- Start the gitspreadd daemon in a shell where ssh-agent is activated
- Set up a git remote on the local computer with the slow connection
  pointing to the repository on the server

That’s all there is. From now on, you can push to the defined remote and
let the remote server with a faster connection take care of spreading
the commits around.

Source code
-----------

Gitspread can be cloned from the following repositories:

- git://gitorious.org/sunny256/gitspread.git
- git://github.com/sunny256/gitspread.git
- git://repo.or.cz/gitspread.git

Bugs and suggestions
--------------------

Bugs and suggestions can be filed in the issue tracker at
<https://github.com/sunny256/gitspread/issues> .

License: GNU General Public License version 3 or later

Regards,
Øyvind

             reply	other threads:[~2011-04-24 22:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-24 22:15 Øyvind A. Holm [this message]
2011-04-25 10:35 ` Announcing Gitspread - Spread Git commits to several servers with a single push Jakub Narebski
2011-04-25 11:31   ` Øyvind A. Holm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikuCfnSuY2r+YzWu1PegP3baniOjA@mail.gmail.com \
    --to=sunny@sunbase.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).