All Projects → selectel → mirror-sync

selectel / mirror-sync

Licence: GPL-2.0 license
Collection of scripts for linux rpm/deb repositories mirroring

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to mirror-sync

demo community
Demonstriert eine Community-Website auf Basis von REDAXO 5.
Stars: ✭ 38 (+111.11%)
Mutual labels:  community
hackergarten.github.io
Hackgarten Homepage
Stars: ✭ 17 (-5.56%)
Mutual labels:  community
community
基于spring boot与mybatis搭建的社区
Stars: ✭ 18 (+0%)
Mutual labels:  community
Server
FerrisChat's Server
Stars: ✭ 21 (+16.67%)
Mutual labels:  community
platform
Mapseed is a simple, beautiful way to collect information and tell geographic stories.
Stars: ✭ 81 (+350%)
Mutual labels:  community
vimdoc-ja-working
vimdoc-ja working repository
Stars: ✭ 70 (+288.89%)
Mutual labels:  community
workshops
Hack Club NMIT workshops library!
Stars: ✭ 17 (-5.56%)
Mutual labels:  community
MachineLearning
Established in 2018, our team aims to bring together machine learning enthusiasts to explore the fundamentals and trends of machine learning. Check out the team presentation below!
Stars: ✭ 20 (+11.11%)
Mutual labels:  community
community-projects
Webots projects (PROTO files, controllers, simulation worlds, etc.) contributed by the community.
Stars: ✭ 20 (+11.11%)
Mutual labels:  community
community
FINOS Community, Project and SIG wide collaboration space
Stars: ✭ 43 (+138.89%)
Mutual labels:  community
LabelPropagation
A NetworkX implementation of Label Propagation from a "Near Linear Time Algorithm to Detect Community Structures in Large-Scale Networks" (Physical Review E 2008).
Stars: ✭ 101 (+461.11%)
Mutual labels:  community
build-a-space
Automatically add community documentation to your repository
Stars: ✭ 18 (+0%)
Mutual labels:  community
NanoSoft
A forum system built using plain php dedicated for C#.NET Developers
Stars: ✭ 20 (+11.11%)
Mutual labels:  community
mastodo
A fork of the GNU Social/AP-compatible microblogging server
Stars: ✭ 29 (+61.11%)
Mutual labels:  community
help
File an issue here if you need help with CasparCG by the community-led support 👍
Stars: ✭ 64 (+255.56%)
Mutual labels:  community
devrel-kpis
A community-sourced resource of metrics and methods for proving ROI through data + story. Advice from around the DevRel and Community world.
Stars: ✭ 43 (+138.89%)
Mutual labels:  community
community
Volantis Community 社区主页 https://vlts.cc https://volantis.js.org
Stars: ✭ 85 (+372.22%)
Mutual labels:  community
FDIPs
Fusion open source community (FOSC) improvement proposals
Stars: ✭ 54 (+200%)
Mutual labels:  community
berlin
🐻 learn coding with nodeschool berlin (๑>ᴗ<๑)
Stars: ✭ 54 (+200%)
Mutual labels:  community
polskifrontend
Polski Frontend to agregator blogów, podcastów i kanałów wideo polskiej sceny frontendowej.
Stars: ✭ 45 (+150%)
Mutual labels:  community

Mirror-sync

Script set for partial rpm/deb repositories mirroring with sanity check.

Description

WARNING: This set of scripts is not designed to be used on 'live' repositories that are available to clients during synchronization It violates common synchronization order(packages first, metadata later) to provide partial mirroring capability. It means that repositories will be inconsistent during the update. Please use these scripts in conjunction with snapshots, on inactive repos, etc.

Only rsync mirrors are supported.

There are currently three mirroring scripts, all of them take path to config file as a first argument.

  • rpm-mirror - script for mirroring RPM repositories
  • deb-mirror - script for mirroring DEB repositories
  • arch-mirror - script for mirroring Archlinux repositories

You can see some config examples at the config/ directory.

Installation

Clone this repo to preferable location, for example /opt/mirror-sync:

cd /opt
git clone https://github.com/selectel/mirror-sync.git mirror-sync

Create user for running mirroring scripts:

adduser --no-create-home --home /opt/mirror-sync mirror

Create repository storage, for example at /srv/www/mirror and give ownership to mirror user:

mkdir -p /srv/www/mirror/{debian,centos}
chown -R mirror:mirror /srv/www/mirror

Optionally create log directory:

mkdir -p /var/log/mirror-sync
chown -R mirror:mirror /var/log/mirror-sync

Create/edit configuration files for required repositories:

vim /opt/mirror-sync/config/centos.cfg
vim /opt/mirror-sync/config/debian.cfg

Now you can start synchronization of desired repository:

/opt/mirror-sync/rpm-mirror /opt/mirror-sync/config/centos.cfg

or:

/opt/mirror-sync/deb-mirror /opt/mirror-sync/config/debian.cfg
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].