# git remote repositories

2 messages from 2005-04-22 to 2005-04-23. Participants: Dan Weber, Petr Baudis.
Thread: https://gitlist.dev/t/257

## Dan Weber, 2005-04-22 23:38

Subject: git remote repositories
Message-ID: <Pine.LNX.4.62.0504221929480.20133@mirrorlynx.com>
URL: https://gitlist.dev/e/Pine.LNX.4.62.0504221929480.20133%40mirrorlynx.com

```

Hi,

It wasn't that long ago that the pasky git tree was relocated.  This 
required a modification to the .git directory in a local pull.  A dns 
system could be built to ensure the following:

A) quick easy lookup of archive locations
B) handle changes of repository location
C) add mirror support

So heres the plan...
I do a lot of work in sip/voip field, and our approach to handling backup 
proxies and routers is to use a dns srv record.

Here's how it works for voip/sip.

_{protocol}._{transport}.{name}.hostname.org

A sample lookup:

dig SRV _sip._udp.proxy-dca.broadvoice.com


;; QUESTION SECTION:
;_sip._udp.proxy-dca.broadvoice.com. IN SRV

;; ANSWER SECTION:
_sip._udp.proxy-dca.broadvoice.com. 86400 IN SRV 1 0 5060 
proxy.mia.broadvoice.com.
_sip._udp.proxy-dca.broadvoice.com. 86400 IN SRV 0 0 5060 
proxy.dca.broadvoice.com.


Now of course we could null out some of those fields and swap sip for git 
and udp for rsync, then replace proxy.foo to rsync://host/path/to/git. 
Since we're using rsync, mirroring is simplified by just rsyncing the 
trees.

Dan

```

## Petr Baudis, 2005-04-23 23:16

Subject: Re: git remote repositories
Message-ID: <20050423231630.GJ13222@pasky.ji.cz>
URL: https://gitlist.dev/e/20050423231630.GJ13222%40pasky.ji.cz
In-Reply-To: <Pine.LNX.4.62.0504221929480.20133@mirrorlynx.com>

```
Dear diary, on Sat, Apr 23, 2005 at 01:38:43AM CEST, I got a letter
where Dan Weber <dan@mirrorlynx.com> told me that...
> It wasn't that long ago that the pasky git tree was relocated.  This 
> required a modification to the .git directory in a local pull.  A dns 
> system could be built to ensure the following:
> 
> A) quick easy lookup of archive locations
> B) handle changes of repository location
> C) add mirror support

What's wrong with just doing roundrobin? :)

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor

```
