{"id":23564206,"url":"https://github.com/selectel/mirror-sync","last_synced_at":"2025-04-30T16:18:03.022Z","repository":{"id":11532223,"uuid":"14016412","full_name":"selectel/mirror-sync","owner":"selectel","description":"Collection of scripts for linux rpm/deb repositories mirroring","archived":false,"fork":false,"pushed_at":"2021-01-13T13:11:52.000Z","size":40,"stargazers_count":25,"open_issues_count":1,"forks_count":13,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-04-30T16:17:40.323Z","etag":null,"topics":["community"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/selectel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-31T12:36:14.000Z","updated_at":"2025-03-04T13:44:31.000Z","dependencies_parsed_at":"2022-09-17T12:11:18.080Z","dependency_job_id":null,"html_url":"https://github.com/selectel/mirror-sync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fmirror-sync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fmirror-sync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fmirror-sync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selectel%2Fmirror-sync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selectel","download_url":"https://codeload.github.com/selectel/mirror-sync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251739677,"owners_count":21635893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["community"],"created_at":"2024-12-26T17:13:20.801Z","updated_at":"2025-04-30T16:18:03.000Z","avatar_url":"https://github.com/selectel.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Mirror-sync\n===========\n\nScript set for partial rpm/deb repositories mirroring with sanity check.\n\n# Description\n\nWARNING: This set of scripts is not designed to be used on 'live' repositories\nthat are available to clients during synchronization It violates\ncommon synchronization order(packages first, metadata later) to provide\npartial mirroring capability. It means that repositories will be\ninconsistent during the update. Please use these scripts in conjunction\nwith snapshots, on inactive repos, etc.\n\nOnly rsync mirrors are supported.\n\nThere are currently three mirroring scripts, all of them take path to\nconfig file as a first argument.\n* **rpm-mirror** - script for mirroring RPM repositories\n* **deb-mirror** - script for mirroring DEB repositories\n* **arch-mirror** - script for mirroring Archlinux repositories\n\nYou can see some config examples at the config/ directory.\n\n# Installation\n\nClone this repo to preferable location, for example /opt/mirror-sync:\n \n    cd /opt\n    git clone https://github.com/selectel/mirror-sync.git mirror-sync\n \nCreate user for running mirroring scripts:\n\n    adduser --no-create-home --home /opt/mirror-sync mirror\n    \nCreate repository storage, for example at /srv/www/mirror and give \nownership to mirror user:\n\n    mkdir -p /srv/www/mirror/{debian,centos}\n    chown -R mirror:mirror /srv/www/mirror\n    \nOptionally create log directory:\n    \n    mkdir -p /var/log/mirror-sync\n    chown -R mirror:mirror /var/log/mirror-sync\n    \nCreate/edit configuration files for required repositories:\n\n    vim /opt/mirror-sync/config/centos.cfg\n    vim /opt/mirror-sync/config/debian.cfg\n    \nNow you can start synchronization of desired repository:\n\n    /opt/mirror-sync/rpm-mirror /opt/mirror-sync/config/centos.cfg\n    \nor:\n\n    /opt/mirror-sync/deb-mirror /opt/mirror-sync/config/debian.cfg\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fmirror-sync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselectel%2Fmirror-sync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselectel%2Fmirror-sync/lists"}