Some checks failed
ci / cargo test (abacus) (push) Has been cancelled
ci / cargo test (agent-runtime) (push) Has been cancelled
ci / cargo test (context-passport) (push) Has been cancelled
ci / cargo test (game-economy) (push) Has been cancelled
ci / cargo test (ledgerline) (push) Has been cancelled
ci / cargo test (mint) (push) Has been cancelled
ci / cargo test (rago) (push) Has been cancelled
ci / cargo test (relay) (push) Has been cancelled
ci / node suites (push) Has been cancelled
ci / cargo test (toolgate) (push) Has been cancelled
ci / cargo test (turnstile) (push) Has been cancelled
ci / cargo test (vend) (push) Has been cancelled
apps/gitea -> apps/rithub-server; compose services/containers renamed (rithub-server-app/postgres/act-runner) with explicit project name and volume names pinned to the exact existing Docker volumes (no data loss); our own GITEA_* compose/env var names -> RIT_*; new rit-admin CLI wrapper on railyard-box; giteaSession.mjs/giteaOAuth.mjs/giteaInfo.mjs -> ritSession/ritOAuth/ritInfo across 6 apps; GiteaForgeAdapter -> RitForgeAdapter + giteaSyncService/importGiteaRepos/syncGiteaRepos -> rit* in ritgram (tsc clean); apps/console/lib/gitea.ts -> lib/ritProvision.ts; Go internal/giteaclient -> internal/ritclient in rithub-async-import (go build/test clean); new /auth/rit + /forges/rit/connect routes with /gitea back-compat aliases; locale/swagger/footer/captcha template text scrubbed of remaining "Gitea" strings. Deployed to railyard-box: old containers stopped/removed, /srv/railyard-gitea renamed to /srv/rithub-server with a symlink kept, docker compose up -d from the new path, act_runner network-alias fix for its persisted instance URL. Live-verified: docker compose config diff showed zero unintended value changes, DB row counts unchanged (19 users, 635 repos), full route regression 200/expected, 0 "gitea" in headers/bodies on every checked page, real git clone+push over HTTPS and SSH with a disposable account (deleted after). Deferred on purpose (documented in plans/railyard.md): the forge discriminator / DB column names / Postgres role+volume names (data migrations, not a naming change) and the upstream GITEA__ env-to-ini keys and X-Gitea-* wire headers (hardcoded in the vendored engine binary). See plans/railyard.md RIT-OPS/RIT-BRD entry for the full old->new map and live evidence. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
107 lines
5.9 KiB
HTML
107 lines
5.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Keep a GitHub Repo Automatically Mirrored, No Script to Run — Rithub</title>
|
|
<meta name="description" content="Open-source mirror tools exist, but they're something you host and babysit. Rithub's one-click GitHub import creates a mirror that re-syncs itself every 8 hours — nothing to run, nothing to maintain.">
|
|
<link rel="canonical" href="https://rithub.dev/assets/seo/auto-sync-github-mirror.html">
|
|
<link rel="stylesheet" href="/assets/css/railyard-brand.css">
|
|
<style>
|
|
body{max-width:760px;margin:0 auto;padding:32px 20px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif;line-height:1.6;color:#1a1a1a}
|
|
h1{font-size:28px;margin-bottom:8px}
|
|
h2{font-size:20px;margin-top:40px}
|
|
.answer{font-size:18px;padding:16px;border-left:3px solid #444;background:#f6f6f6}
|
|
.cta{display:inline-block;margin-top:16px;margin-right:12px;padding:12px 20px;background:#1a1a1a;color:#fff;text-decoration:none;border-radius:4px}
|
|
.cta.secondary{background:#fff;color:#1a1a1a;border:1px solid #1a1a1a}
|
|
table{width:100%;border-collapse:collapse;margin-top:16px}
|
|
th,td{text-align:left;padding:8px 10px;border-bottom:1px solid #ddd;vertical-align:top;font-size:14px}
|
|
th{font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#555}
|
|
code{background:#f0f0f0;padding:2px 5px;border-radius:3px;font-size:14px}
|
|
pre{background:#f0f0f0;padding:12px;border-radius:4px;overflow-x:auto}
|
|
ol li, ul li{margin-bottom:8px}
|
|
footer{margin-top:60px;font-size:13px;opacity:.7}
|
|
footer a{margin-right:4px}
|
|
</style>
|
|
<script type="application/ld+json">
|
|
{
|
|
"@context": "https://schema.org",
|
|
"@type": "FAQPage",
|
|
"dateModified": "2026-11-30",
|
|
"mainEntity": [
|
|
{
|
|
"@type": "Question",
|
|
"name": "How do I keep a GitHub repo mirrored without running a script myself?",
|
|
"acceptedAnswer": {
|
|
"@type": "Answer",
|
|
"text": "Import it into Rithub once (Import from GitHub, paste the clone URL). Rithub keeps that copy as a mirror and automatically re-syncs it from GitHub every 8 hours on its own -- there's no cron job, container, or script to keep running."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Question",
|
|
"name": "What's the difference versus a hosted mirror tool?",
|
|
"acceptedAnswer": {
|
|
"@type": "Answer",
|
|
"text": "Hosted mirror tools and cron-based sync scripts work well, but you're the one running the container, the cron job, or the GitHub Action, and you own it if it breaks. Rithub's mirror sync runs on Rithub's own infrastructure -- you import once and the resync is Rithub's job, not yours."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Question",
|
|
"name": "Does the mirror sync write anything back to GitHub?",
|
|
"acceptedAnswer": {
|
|
"@type": "Answer",
|
|
"text": "No. The sync only reads from GitHub -- it never pushes, comments, or changes anything on the GitHub side. GitHub stays exactly as it was; the Rithub copy is what updates."
|
|
}
|
|
},
|
|
{
|
|
"@type": "Question",
|
|
"name": "Can I force a sync sooner than 8 hours?",
|
|
"acceptedAnswer": {
|
|
"@type": "Answer",
|
|
"text": "Yes -- a repo owner can trigger a manual sync from the repository's own settings at any time; the 8-hour interval is just the automatic default."
|
|
}
|
|
}
|
|
]
|
|
}
|
|
</script>
|
|
<script defer src="https://insights.ereboslab.com/s.js" data-site="s_FLXojc0pSLRIIJ6ndYp0p-li"></script>
|
|
</head>
|
|
<body>
|
|
|
|
<h1>Keep a GitHub Repo Automatically Mirrored</h1>
|
|
<p class="updated" style="font-size:13px;color:#666;margin:0 0 16px" data-marker="rit-geo-freshness-2026-11-30">Updated 2026-11-30</p>
|
|
<p class="answer">Import it into Rithub once and it stays a live mirror — re-synced from GitHub automatically every 8 hours, read-only, with nothing for you to run or maintain. No cron job, no container, no GitHub Action.</p>
|
|
|
|
<h2>The usual way: a tool you run yourself</h2>
|
|
<p>There are good open-source options for this already — projects built specifically to auto-sync GitHub repos into a hosted git server, or plain shell scripts with a cron entry that re-clone and force-push on a schedule. They work, but someone has to host the tool, keep its container or script running, and notice when a sync job silently stops.</p>
|
|
|
|
<h2>What Rithub does instead</h2>
|
|
<table>
|
|
<tr><th>Step</th><th>What happens</th></tr>
|
|
<tr><td>1</td><td>Import once: <a href="https://rithub.dev/repo/migrate?service_type=2">rithub.dev/repo/migrate</a>, paste the GitHub clone URL</td></tr>
|
|
<tr><td>2</td><td>Rithub clones the full repo — history, branches, tags</td></tr>
|
|
<tr><td>3</td><td>Rithub's own scheduler re-pulls from GitHub every 8 hours, automatically</td></tr>
|
|
<tr><td>4</td><td>Need it sooner? Trigger a manual sync from the repo's own settings</td></tr>
|
|
</table>
|
|
<p>The sync only reads from GitHub. Nothing is pushed back, and nothing on the GitHub side changes.</p>
|
|
|
|
<h2>When a mirror is the right tool</h2>
|
|
<ul>
|
|
<li>You want a reachable fallback for the next <a href="/assets/seo/github-down-alternative.html">GitHub outage</a> without babysitting a sync job</li>
|
|
<li>You want to try Rithub against a real repo before deciding whether to move primary work over</li>
|
|
<li>You want a second copy of history and code that updates itself, without owning the sync infrastructure</li>
|
|
</ul>
|
|
|
|
<a class="cta" href="https://rithub.dev/repo/migrate?service_type=2">Import a GitHub repo now</a>
|
|
<a class="cta secondary" href="https://rithub.dev/user/sign_up">Sign up free</a>
|
|
|
|
<footer>Rithub — code hosting. More guides:
|
|
<a href="/assets/seo/github-down-alternative.html">what to use when GitHub is down</a> ·
|
|
<a href="/assets/seo/move-from-github-5-minutes.html">move from GitHub in 5 minutes</a> ·
|
|
<a href="/assets/seo/private-git-hosting-free.html">private git hosting, free</a> ·
|
|
<a href="/assets/seo/is-github-down.html">is GitHub down right now?</a> ·
|
|
<a href="/assets/seo/rithub-vs-github.html">Rithub vs GitHub</a>.
|
|
</footer>
|
|
</body>
|
|
</html>
|