# Replication of shared repositories

2 messages from 2010-04-13 to 2010-04-15. Participants: cdossantos, Ramkumar Ramachandra.
Thread: https://gitlist.dev/t/23441

## cdossantos, 2010-04-13 07:45

Subject: Replication of shared repositories
Message-ID: <1271144720027-4894649.post@n2.nabble.com>
URL: https://gitlist.dev/e/1271144720027-4894649.post%40n2.nabble.com

```

Hello,


I would like to replicate the contents of my GIT shared repository to
another server, a sort of mirror, but i didn't find any references about
that. I know that hook scripts run locally. However, could i have a post
commit script that after a local commit, not only starts a push to the
shared repository but starts as well a push from the shared repository to
another server ? 

Thanks in advance, 

Santos 
-- 
View this message in context: http://n2.nabble.com/Replication-of-shared-repositories-tp4894649p4894649.html
Sent from the git mailing list archive at Nabble.com.

```

## Ramkumar Ramachandra, 2010-04-15 04:55

Subject: Re: Replication of shared repositories
Message-ID: <x2uf3271551004142155g2370b9bam16aa00590ecb3f92@mail.gmail.com>
URL: https://gitlist.dev/e/x2uf3271551004142155g2370b9bam16aa00590ecb3f92%40mail.gmail.com
In-Reply-To: <1271144720027-4894649.post@n2.nabble.com>

```
> I would like to replicate the contents of my GIT shared repository to
> another server, a sort of mirror, but i didn't find any references about
> that.

Just push to two different remotes.

> I know that hook scripts run locally. However, could i have a post
> commit script that after a local commit, not only starts a push to the
> shared repository but starts as well a push from the shared repository to
> another server ?

I suppose you could do this.

-- Ram

```
