wiki/doc/mirroring.md

73 lines
2.2 KiB
Markdown
Raw Normal View History

2020-03-14 19:10:16 +00:00
---
title: Mirroring
description:
published: true
2020-03-14 19:17:07 +00:00
date: 2020-03-14T19:17:05.768Z
2020-03-14 19:10:16 +00:00
tags: documentation
---
# Mirroring
## List of active mirrors (Mirmon)
`http://downloads.openmandriva.org/mm/`
## Lists of mirrors for configuring the media
`http://downloads.openmandriva.org/mirrors/`
## Setting up a mirror
Please follow this process:
* Use one of our T-1 mirrors,
`http://mirror.yandex.ru/openmandriva/`
`http://distro.ibiblio.org/openmandriva/`
For example with command
`rsync -av rsync://mirror.yandex.ru/openmandriva/ /local/path`
`rsync -av distro.ibiblio.org::openmandriva/ /local/path/`
> Don't forget the ''TIME'' file. It is needed for Mirmon to work correctly
>
> At least '''300GB''' of free disk space is needed
{.is-warning}
Note: the upstream is
`http://abf-downloads.openmandriva.org`
This server pushes only necessary directories and packages to Yandex and ibiblio.
Users should generally not use this server unless they need src.rpm packages, debug packages or packages from specific user contributed repo.
Mirrors should also avoid to sync from this server as there is much more data in it.
## Adding the urls to our lists
2020-03-14 19:17:07 +00:00
* Mirmon: send the url of your mirror to the workshop team (your mail will eventually be held for moderation, the first time).
We will add it to the lists.
2020-03-14 19:10:16 +00:00
* Media list: for each release (cooker, 4.0, rock (4.1), rolling, ...) the record is set as:
```
country=CountryName,city=CityName,latitude=[-]xx.y[y],longitude=[-]xx.y[y],bw=xxGB,version=VersionName,arch=ArchName,type=distrib,url=[ftp|http]://RootUrl/repository/ArchName
```
For example:
```
country=Brasil,city=Curitiba,latitude=-13.58,longitude=-51.85,bw=1GB,version=2013.0,arch=x86_64,type=distrib,url=ftp://openmandriva.c3sl.ufpr.br/openmandriva/openmandriva2013.0/repository/x86_64/
```
Please send also the relevant details for your mirror.
2020-03-14 19:17:07 +00:00
## Synchronize your mirror
2020-03-14 19:10:16 +00:00
* You may use **rsync** (`man rsync` for details)
```
/usr/bin/rsync -av --delete --delete-delay --numeric-ids --delay-updates --exclude=.~tmp~/ mirror.rosalinux.com::openmandriva/ /your_path
```
> You must use `--delete-delay` and `--delay-updates`, at the very least.
{.is-warning}
* The best is to synchronize every 6 or 12 hours
\-