chore: drop the beta label from tested sources, Forgejo and LFS (#594)
GitLab and Gitea / Forgejo sources (Codeberg included), the Forgejo destination and Git LFS mirroring have had three months of use and fixes since they shipped (#440, #506 and others), so they lose the BETA pill and the "Beta." line under the dropdowns. The Git URL source (two weeks old) and the GitHub and GitLab push destinations (no field reports yet, and they overwrite the copy on every sync) stay in beta. isBetaSourceProvider and isBetaDestinationProvider now check explicit lists instead of "anything but the default". The site, docs, README and FAQ say the same, and the Configuration and destination screenshots are retaken without the old pills.
BIN
.github/assets/configuration.png
vendored
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 258 KiB |
BIN
.github/assets/configuration_dark.png
vendored
|
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 256 KiB |
BIN
.github/assets/configuration_mobile.png
vendored
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 168 KiB |
BIN
.github/assets/configuration_mobile_dark.png
vendored
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 166 KiB |
@@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- An SSO sign-in is no longer linked to a local account from another domain. When the identity provider said the email was verified, the sign-in was linked to the local account with that email whatever the provider's Email Domain, so someone who could get that email at the provider could take over the account. Linking now only happens for emails in the provider's domain, as the docs already said
|
||||
|
||||
### Changed
|
||||
- GitLab and Gitea / Forgejo sources (Codeberg included), the Forgejo destination and Git LFS mirroring are no longer marked beta. They have had three months of use and fixes since they shipped (#440, #506 and others). The Git URL source, which arrived in 3.52, and the GitHub and GitLab push destinations, which overwrite the copy on every sync, keep their BETA pill
|
||||
- A change on the Configuration page that leaves mirrors out of place now brings up a bar at the bottom of the page saying how many, with **Review and move** and **Not now** (#550). The count was only in the Organization Structure card's footer, which on a laptop sits below the fold while you pick a strategy, so nothing said the change touched existing mirrors. The bar shows wherever the page is scrolled, follows a move started from it until it ends, and **Not now** puts it away until the next change. It stays down when the change failed to save. Mirrors that were already out of place when the page opened are still shown in the card only
|
||||
- The Configuration page is regrouped into five tabs. Connections held six cards, and four of them were about mirroring rather than connecting, so release, metadata and placement options were hard to find. Connections now holds the Sources card and the destination card at their own heights. A new **Mirroring** tab holds Repository Selection and Mirror Content on the left and Organization Structure on the right. Destructive Update Protection moved to the Automation tab next to the sync cards, and the Authentication tab is now called **Access**, since it also holds API keys. The import button moved from the page header into the Sources card as **Import repositories**: it imports from every source, so it no longer names one, and it is hidden when only Git URL sources are connected, since those have nothing to list. No setting changed
|
||||
- GitHub App sources reuse GitHub's "not modified" answers (#563, thanks @cypherbits). Sources with a token already kept the ETag of each listing and asked again with it, which GitHub answers for free when nothing changed, but App sources fetched everything in full on every sync, so each scheduled sync spent the installation's rate limit on repository details, releases, milestones, issues and pull requests that had not changed. Sources without a token are unchanged, since GitHub counts those answers anyway
|
||||
|
||||
@@ -39,8 +39,8 @@ Open http://localhost:4321 and create an account; the first one becomes the admi
|
||||
## Features
|
||||
|
||||
- Mirror your public, private and starred repositories and whole organizations, including public organizations you are not a member of
|
||||
- Sources: GitHub, GitHub Enterprise and GitHub Apps, plus GitLab, Gitea, Forgejo and plain git hosts in beta ([Sources](https://gitea-mirror.raylabs.io/docs/sources/))
|
||||
- Destinations: Gitea as pull mirrors, plus Forgejo, and GitHub or GitLab as push targets, in beta ([Destinations](https://gitea-mirror.raylabs.io/docs/destinations/))
|
||||
- Sources: GitHub, GitHub Enterprise and GitHub Apps, GitLab, Gitea and Forgejo, plus plain git hosts in beta ([Sources](https://gitea-mirror.raylabs.io/docs/sources/))
|
||||
- Destinations: Gitea and Forgejo as pull mirrors, plus GitHub or GitLab as push targets in beta ([Destinations](https://gitea-mirror.raylabs.io/docs/destinations/))
|
||||
- Issues, pull requests (as issues), labels, milestones, releases with assets, wiki and Git LFS, with filters and limits per organization and repository
|
||||
- Mirror strategies to keep the source's structure, use one organization, or put everything under your user, plus a destination per organization or repository
|
||||
- Scheduled syncs, discovery of new repositories, and cleanup that archives mirrors whose source is gone ([Cleanup and reconcile](https://gitea-mirror.raylabs.io/docs/cleanup-and-reconcile/))
|
||||
|
||||
@@ -326,8 +326,8 @@ export function GitHubConfigForm({
|
||||
{provider === "github"
|
||||
? "Where your repositories are pulled from"
|
||||
: provider === "gitlab"
|
||||
? "Beta. Code, tags, wiki and LFS are mirrored. Issues, merge requests and releases need a GitHub source."
|
||||
: "Beta. Code, tags, releases, wiki and LFS are mirrored. Issues and pull requests need a GitHub source."}
|
||||
? "Code, tags, wiki and LFS are mirrored. Issues, merge requests and releases need a GitHub source."
|
||||
: "Code, tags, releases, wiki and LFS are mirrored. Issues and pull requests need a GitHub source."}
|
||||
</p>
|
||||
{sourceLock?.locked && (
|
||||
<HostLockNotice
|
||||
|
||||
@@ -1203,7 +1203,6 @@ export function GitHubMirrorSettings({
|
||||
description={
|
||||
isPushTarget ? pushTargetReason : "Requires LFS enabled on your Gitea server and Git v2.1.2+"
|
||||
}
|
||||
badge="BETA"
|
||||
disabled={isPushTarget}
|
||||
checked={mirrorOptions.mirrorLFS}
|
||||
onCheckedChange={(checked) => handleMirrorChange('mirrorLFS', checked)}
|
||||
|
||||
@@ -325,7 +325,7 @@ export function GiteaConfigForm({ config, setConfig, onAutoSave, isAutoSaving, g
|
||||
{isPushTarget
|
||||
? `${providerLabel} has no pull mirror API, so this app keeps a bare clone of each source repository and pushes its branches and tags there.`
|
||||
: provider === "forgejo"
|
||||
? "Beta. Where mirrors are created. Forgejo shares Gitea's API, so everything Gitea supports works here."
|
||||
? "Where mirrors are created. Forgejo shares Gitea's API, so everything Gitea supports works here."
|
||||
: "Where mirrors are created."}
|
||||
</p>
|
||||
{destinationLock?.locked && (
|
||||
|
||||
@@ -131,10 +131,10 @@ function providerMetaFor(provider: SourceProvider): SourceProviderMeta {
|
||||
function providerHelp(provider: SourceProvider): string {
|
||||
if (provider === "github") return "Where your repositories are pulled from";
|
||||
if (provider === "gitlab")
|
||||
return "Beta. Code, tags, wiki and LFS are mirrored. Issues, merge requests and releases need a GitHub source.";
|
||||
return "Code, tags, wiki and LFS are mirrored. Issues, merge requests and releases need a GitHub source.";
|
||||
if (provider === "git")
|
||||
return "Beta. Any host that can be cloned over http(s). Add each repository by its clone URL on the Repositories page. Branches and tags are mirrored; there is nothing to list, so no auto-import, releases or issues.";
|
||||
return "Beta. Code, tags, releases, wiki and LFS are mirrored. Issues and pull requests need a GitHub source.";
|
||||
return "Code, tags, releases, wiki and LFS are mirrored. Issues and pull requests need a GitHub source.";
|
||||
}
|
||||
|
||||
function sourceHost(source: SourceApiRecord): string {
|
||||
|
||||
@@ -12,9 +12,9 @@ import {
|
||||
} from "./destination-kinds";
|
||||
|
||||
describe("destination kinds", () => {
|
||||
test("Gitea is the supported default; every other destination is beta", () => {
|
||||
test("only the GitHub and GitLab push targets are still beta", () => {
|
||||
expect(isBetaDestinationProvider("gitea")).toBe(false);
|
||||
expect(isBetaDestinationProvider("forgejo")).toBe(true);
|
||||
expect(isBetaDestinationProvider("forgejo")).toBe(false);
|
||||
expect(isBetaDestinationProvider("github")).toBe(true);
|
||||
expect(isBetaDestinationProvider("gitlab")).toBe(true);
|
||||
});
|
||||
|
||||
@@ -19,9 +19,15 @@ export type PushDestinationKind = (typeof PUSH_DESTINATION_KINDS)[number];
|
||||
|
||||
export const DEFAULT_DESTINATION_PROVIDER: DestinationProviderKind = "gitea";
|
||||
|
||||
/** Destinations other than Gitea are beta: they work end to end but have had less time in the field. */
|
||||
/**
|
||||
* Destinations still in beta: the push targets, which overwrite the copy on
|
||||
* every sync and have had little use in the field. Forgejo shares Gitea's API
|
||||
* and left beta in 3.59.
|
||||
*/
|
||||
const BETA_DESTINATION_PROVIDERS: readonly DestinationProviderKind[] = ["github", "gitlab"];
|
||||
|
||||
export function isBetaDestinationProvider(kind: DestinationProviderKind): boolean {
|
||||
return kind !== DEFAULT_DESTINATION_PROVIDER;
|
||||
return BETA_DESTINATION_PROVIDERS.includes(kind);
|
||||
}
|
||||
|
||||
export const DESTINATION_PROVIDER_LABELS: Record<DestinationProviderKind, string> = {
|
||||
|
||||
@@ -13,10 +13,11 @@ import {
|
||||
} from "./kinds";
|
||||
|
||||
describe("isBetaSourceProvider", () => {
|
||||
test("GitHub is the supported default; every other source is beta", () => {
|
||||
test("only the Git URL source is still beta", () => {
|
||||
expect(isBetaSourceProvider("github")).toBe(false);
|
||||
expect(isBetaSourceProvider("gitlab")).toBe(true);
|
||||
expect(isBetaSourceProvider("gitea")).toBe(true);
|
||||
expect(isBetaSourceProvider("gitlab")).toBe(false);
|
||||
expect(isBetaSourceProvider("gitea")).toBe(false);
|
||||
expect(isBetaSourceProvider("git")).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -13,9 +13,15 @@ export type SourceProviderKind = (typeof SOURCE_PROVIDER_KINDS)[number];
|
||||
|
||||
export const DEFAULT_SOURCE_PROVIDER: SourceProviderKind = "github";
|
||||
|
||||
/** Sources other than GitHub are beta: they work end to end but have had less time in the field. */
|
||||
/**
|
||||
* Sources still in beta: they work end to end but have had little time in the
|
||||
* field. GitLab and Gitea / Forgejo left beta after three months of use and
|
||||
* fixes (#506, #440); Git URL arrived in 3.52.
|
||||
*/
|
||||
const BETA_SOURCE_PROVIDERS: readonly SourceProviderKind[] = ["git"];
|
||||
|
||||
export function isBetaSourceProvider(kind: SourceProviderKind): boolean {
|
||||
return kind !== DEFAULT_SOURCE_PROVIDER;
|
||||
return BETA_SOURCE_PROVIDERS.includes(kind);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
|
Before Width: | Height: | Size: 251 KiB After Width: | Height: | Size: 258 KiB |
|
Before Width: | Height: | Size: 250 KiB After Width: | Height: | Size: 256 KiB |
|
Before Width: | Height: | Size: 160 KiB After Width: | Height: | Size: 168 KiB |
|
Before Width: | Height: | Size: 158 KiB After Width: | Height: | Size: 166 KiB |
|
Before Width: | Height: | Size: 245 KiB After Width: | Height: | Size: 250 KiB |
|
Before Width: | Height: | Size: 243 KiB After Width: | Height: | Size: 249 KiB |
@@ -8,7 +8,7 @@ const faqs = [
|
||||
},
|
||||
{
|
||||
question: "Which hosts can it mirror from and to?",
|
||||
answer: "Sources: GitHub is the default. GitLab and Gitea or Forgejo, which covers Codeberg, are available in beta. Destinations: Gitea is the default. Forgejo, GitHub and GitLab are available in beta. Each account uses one source and one destination at a time. GitHub to Gitea is the supported path; every other combination works end to end but has had less time in the field, so it carries a beta label in the dropdowns.",
|
||||
answer: "Sources: GitHub, GitLab, and Gitea or Forgejo, which covers Codeberg, plus plain git hosts in beta. Destinations: Gitea and Forgejo as pull mirrors, plus GitHub and GitLab as push targets in beta. An account can have several sources and one destination. Issues and pull requests are read from GitHub only, and releases from GitHub, Gitea and Forgejo.",
|
||||
href: "/docs/sources/",
|
||||
linkText: "Read about sources and destinations"
|
||||
},
|
||||
|
||||
@@ -21,7 +21,6 @@ const features = [
|
||||
},
|
||||
{
|
||||
title: "Multiple Sources",
|
||||
badge: "Beta",
|
||||
description: "GitHub is the default. GitLab, Gitea and Forgejo, including Codeberg, work too: code, branches, tags, wiki and LFS come across from any of them.",
|
||||
icon: GitBranch,
|
||||
gradient: "from-accent-teal/10 to-primary/10",
|
||||
|
||||
@@ -138,8 +138,8 @@ export function Hero() {
|
||||
Preserve issues, PRs, releases, and wiki in your own Gitea server.
|
||||
</p>
|
||||
<p className="mt-3 text-sm sm:text-base text-muted-foreground max-w-2xl mx-auto px-4 z-20">
|
||||
It also mirrors from GitLab, Gitea and Forgejo, including Codeberg, and can push to GitHub, GitLab and Forgejo.
|
||||
Those paths are in beta. GitHub to Gitea is the supported default.
|
||||
It also mirrors from GitLab, Gitea and Forgejo, including Codeberg, into Gitea or Forgejo.
|
||||
Pushing to GitHub or GitLab is in beta.
|
||||
</p>
|
||||
|
||||
<div className="mt-6 sm:mt-8 flex flex-wrap items-center justify-center gap-3 text-xs sm:text-sm text-muted-foreground px-4 z-20">
|
||||
@@ -157,7 +157,7 @@ export function Hero() {
|
||||
</div>
|
||||
<div className="flex items-center gap-2 px-3 py-1 rounded-full bg-accent-teal/10 text-accent-teal">
|
||||
<GitBranch className="w-3 h-3 sm:w-4 sm:h-4" />
|
||||
<span className="font-medium">GitLab, Forgejo and Codeberg in beta</span>
|
||||
<span className="font-medium">GitLab, Forgejo and Codeberg too</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -115,18 +115,18 @@ export const useCases: UseCase[] = [
|
||||
{
|
||||
slug: 'mirror-gitlab-to-gitea',
|
||||
title: 'Mirror GitLab Projects to Gitea',
|
||||
summary: 'Point the source at gitlab.com or your own GitLab (beta) and keep projects, groups and subgroups mirrored into Gitea on a schedule.',
|
||||
summary: 'Point the source at gitlab.com or your own GitLab and keep projects, groups and subgroups mirrored into Gitea on a schedule.',
|
||||
painPoint: 'Projects that live on GitLab were out of reach for a tool that only spoke GitHub, and hand-made pull mirrors do not notice new projects.',
|
||||
outcome: 'GitLab projects are discovered through the API, mirrored with branches, tags, wiki and LFS, and kept in sync like any GitHub repository.',
|
||||
tags: ['GitLab', 'Sources', 'Beta'],
|
||||
tags: ['GitLab', 'Sources'],
|
||||
},
|
||||
{
|
||||
slug: 'backup-codeberg-forgejo-repositories',
|
||||
title: 'Back Up Codeberg and Forgejo Repositories',
|
||||
summary: 'Use a Gitea or Forgejo instance, Codeberg included, as the source (beta), and Forgejo as a named destination for the other direction.',
|
||||
summary: 'Use a Gitea or Forgejo instance, Codeberg included, as the source, and Forgejo as a named destination for the other direction.',
|
||||
painPoint: 'Code on Codeberg or on a second Gitea had no place in a GitHub-only backup routine, and Forgejo had to pretend to be Gitea.',
|
||||
outcome: 'Any Gitea or Forgejo host can be the source, Forgejo is a destination in its own right, and each row remembers where it was mirrored.',
|
||||
tags: ['Codeberg', 'Forgejo', 'Beta'],
|
||||
tags: ['Codeberg', 'Forgejo'],
|
||||
},
|
||||
{
|
||||
slug: 'mirror-to-github-or-gitlab',
|
||||
|
||||
@@ -43,7 +43,7 @@ The question isn't *if* you need backups—it's *which solution* fits your workf
|
||||
|
||||
**Best for**: Homelab enthusiasts, indie developers, privacy-conscious teams, cost-sensitive startups
|
||||
|
||||
**How it works**: Automatically mirrors your GitHub repositories to your own Gitea server using scheduled syncs. Preserves full history, metadata (issues, PRs as enriched issues, labels, milestones), releases, and wiki content. GitLab and Gitea or Forgejo sources, and Forgejo, GitHub or GitLab destinations, are available as beta options; the metadata mirroring is GitHub to Gitea only.
|
||||
**How it works**: Automatically mirrors your GitHub repositories to your own Gitea server using scheduled syncs. Preserves full history, metadata (issues, PRs as enriched issues, labels, milestones), releases, and wiki content. GitLab and Gitea or Forgejo sources and a Forgejo destination work too, and GitHub or GitLab destinations are available in beta; issues and pull requests come from GitHub only.
|
||||
|
||||
**Pros**:
|
||||
- ✅ **Zero recurring costs** - Just your hosting/hardware
|
||||
@@ -53,7 +53,7 @@ The question isn't *if* you need backups—it's *which solution* fits your workf
|
||||
- ✅ **Docker-friendly** - One command deployment
|
||||
- ✅ **Multi-arch support** - AMD64 and ARM64 (Raspberry Pi compatible)
|
||||
- ✅ **No vendor lock-in** - Standard Git repos, portable
|
||||
- ✅ **More than one host** - GitLab, Codeberg and Forgejo as sources, Forgejo, GitHub and GitLab as destinations (beta)
|
||||
- ✅ **More than one host** - GitLab, Codeberg and Forgejo as sources, Forgejo as a destination, and GitHub and GitLab as push destinations (beta)
|
||||
- ✅ **Scriptable** - API keys drive every endpoint the dashboard uses
|
||||
|
||||
**Cons**:
|
||||
|
||||
@@ -21,13 +21,13 @@ The Configuration page is organized into five tabs: **Connections**, **Mirroring
|
||||
|
||||
This is where the two ends of the mirror are set up: the **Sources** card for where repositories come from, and the destination card next to it.
|
||||
|
||||
**The Sources card** lists the hosts repositories are pulled from, and you can add more than one. **Add source** opens an editor: pick the host (GitHub, GitLab, Gitea / Forgejo or Git URL; all but GitHub carry a BETA pill), the instance URL for a self-hosted instance, the username, and a personal access token, with the scopes it needs listed next to the token field. A GitHub source can use a GitHub App installation instead of a token. Git URL is for hosts that can only be cloned and asks for the host instead. The repository selection options (private, public, archived, forks, repositories where you are only a collaborator, and starred repositories) are in the **Repository Selection** card on the Mirroring tab. The [Sources](/docs/sources/) page covers each host.
|
||||
**The Sources card** lists the hosts repositories are pulled from, and you can add more than one. **Add source** opens an editor: pick the host (GitHub, GitLab, Gitea / Forgejo or Git URL, which carries a BETA pill), the instance URL for a self-hosted instance, the username, and a personal access token, with the scopes it needs listed next to the token field. A GitHub source can use a GitHub App installation instead of a token. Git URL is for hosts that can only be cloned and asks for the host instead. The repository selection options (private, public, archived, forks, repositories where you are only a collaborator, and starred repositories) are in the **Repository Selection** card on the Mirroring tab. The [Sources](/docs/sources/) page covers each host.
|
||||
|
||||
Once a source is connected, **Import repositories** at the bottom of the Sources card reads what every source can list and adds it to the Repositories page, ready to mirror. It does not mirror anything by itself. A Git URL source has nothing to list, so with only Git URL sources the button is hidden and repositories are added one at a time from the Repositories page.
|
||||
|
||||
**The destination card** starts with the **Destination** dropdown: Gitea, Forgejo, GitHub or GitLab. Gitea is the default; the other three carry a BETA pill. For Gitea and Forgejo the card holds the server URL, an optional external URL, an access token and the username that acts as default owner. For GitHub and GitLab it holds the instance URL, the account and a token, and a notice explains that those targets are overwritten on every sync. Where mirrors land on the destination is set on the Mirroring tab. How often Gitea itself re-pulls each mirror is not on the page: it is `GITEA_MIRROR_INTERVAL` in the environment, 8 hours by default. The [Destinations](/docs/destinations/) page covers each host.
|
||||
**The destination card** starts with the **Destination** dropdown: Gitea, Forgejo, GitHub or GitLab. Gitea is the default, and GitHub and GitLab carry a BETA pill. For Gitea and Forgejo the card holds the server URL, an optional external URL, an access token and the username that acts as default owner. For GitHub and GitLab it holds the instance URL, the account and a token, and a notice explains that those targets are overwritten on every sync. Where mirrors land on the destination is set on the Mirroring tab. How often Gitea itself re-pulls each mirror is not on the page: it is `GITEA_MIRROR_INTERVAL` in the environment, 8 hours by default. The [Destinations](/docs/destinations/) page covers each host.
|
||||
|
||||
GitHub to Gitea is the supported path. Every other source and destination is beta: tested end to end against real hosts, with less time in the field.
|
||||
GitHub, GitLab and Gitea / Forgejo sources and Gitea and Forgejo destinations are supported. The Git URL source and the GitHub and GitLab push destinations are beta: tested end to end against real hosts, with little time in the field.
|
||||
|
||||
Both cards have a **Test** button that performs a live authenticated call, so you can confirm credentials before importing anything.
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: '../../layouts/DocsLayout.astro'
|
||||
title: Destinations
|
||||
description: Where mirrors are created. Gitea is the default; Forgejo, GitHub and GitLab are available as beta destinations, the last two through a push engine.
|
||||
description: Where mirrors are created. Gitea is the default and Forgejo works the same way; GitHub and GitLab are available as beta destinations through a push engine.
|
||||
---
|
||||
|
||||
# Destinations
|
||||
@@ -11,14 +11,14 @@ A destination is the host mirrors are created on. It is chosen from the **Destin
|
||||
| Destination | How mirrors are kept up to date | Status |
|
||||
| --- | --- | --- |
|
||||
| Gitea | Pull mirror: Gitea fetches from the source on its own interval | default, supported |
|
||||
| Forgejo | Pull mirror, same API as Gitea | beta |
|
||||
| Forgejo | Pull mirror, same API as Gitea | supported |
|
||||
| GitHub | Push engine: the app pushes branches and tags | beta |
|
||||
| GitLab | Push engine | beta |
|
||||
|
||||
GitHub to Gitea is the supported path. The other three carry a BETA pill in the dropdown. They are tested end to end against real hosts, including github.com and gitlab.com, but have had less time in the field.
|
||||
Gitea and Forgejo are supported. GitHub and GitLab carry a BETA pill in the dropdown: they are tested end to end against github.com and gitlab.com, but have had little time in the field, and they overwrite the copy on every sync.
|
||||
|
||||
<img src="/assets/destinations.png" alt="The Destination dropdown open, showing the beta pills" class="dark:hidden" />
|
||||
<img src="/assets/destinations_dark.png" alt="The Destination dropdown open, showing the beta pills" class="hidden dark:block" />
|
||||
<img src="/assets/destinations.png" alt="The Destination dropdown open, with BETA pills on GitHub and GitLab" class="dark:hidden" />
|
||||
<img src="/assets/destinations_dark.png" alt="The Destination dropdown open, with BETA pills on GitHub and GitLab" class="hidden dark:block" />
|
||||
|
||||
## Gitea and Forgejo
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ The variable names are historical: `GITHUB_USERNAME` and `GITHUB_TOKEN` hold the
|
||||
|
||||
| Variable | Default | Description |
|
||||
| --- | --- | --- |
|
||||
| `SOURCE_PROVIDER` | `github` | Which host repositories are pulled from: `github`, `gitlab`, `gitea` or `git`. `gitea` also covers Forgejo and Codeberg, and `git` is a plain git host. Anything other than `github` is beta. |
|
||||
| `SOURCE_PROVIDER` | `github` | Which host repositories are pulled from: `github`, `gitlab`, `gitea` or `git`. `gitea` also covers Forgejo and Codeberg, and `git` is a plain git host. `git` is beta. |
|
||||
| `SOURCE_URL` | `https://gitlab.com` or `https://codeberg.org` | Base URL of the GitLab or Gitea / Forgejo instance. Ignored for GitHub, which uses `GH_API_URL`. |
|
||||
| `GITLAB_PAGE_SIZE` | `100` | How many projects a GitLab listing asks for at a time, from 10 to 100. Gitea Mirror starts at 100 and drops to 50, 20, then 10 when a page times out, which costs about 30 s per step on every import. Set a lower value for a slow GitLab so it starts there; it still steps down below it. |
|
||||
| `GITHUB_USERNAME` | none | Your username on the source host. |
|
||||
@@ -123,7 +123,7 @@ The `GITEA_*` names are kept for every destination kind, so an existing deployme
|
||||
|
||||
| Variable | Default | Description |
|
||||
| --- | --- | --- |
|
||||
| `DESTINATION_PROVIDER` | `gitea` | Which host mirrors are created on: `gitea`, `forgejo`, `github` or `gitlab`. Gitea and Forgejo are pull mirrors; GitHub and GitLab receive pushes of branches and tags from the app. Anything other than `gitea` is beta. |
|
||||
| `DESTINATION_PROVIDER` | `gitea` | Which host mirrors are created on: `gitea`, `forgejo`, `github` or `gitlab`. Gitea and Forgejo are pull mirrors; GitHub and GitLab receive pushes of branches and tags from the app. `github` and `gitlab` are beta. |
|
||||
| `GITEA_URL` | none | Destination instance URL used for all API and mirroring traffic. Optional for GitHub and GitLab, which default to github.com and gitlab.com; set it for GitHub Enterprise Server or a self-hosted GitLab. |
|
||||
| `GITEA_EXTERNAL_URL` | none | Browser-facing URL used for dashboard links, when it differs from `GITEA_URL`. |
|
||||
| `GITEA_TOKEN` | none | Destination access token. GitHub push targets need `repo` and `workflow`, plus `delete_repo` if cleanup should delete; GitLab needs `api` and `write_repository`. |
|
||||
|
||||
@@ -11,7 +11,7 @@ description: Get Gitea Mirror running with Docker in a few minutes, or build it
|
||||
|
||||
Gitea Mirror ships as a prebuilt multi-architecture container image. The fastest path is to pull that image and configure everything else through the web interface after it starts. This page covers the Docker path first, then building from source, then running directly on Bun.
|
||||
|
||||
This guide walks the supported path, GitHub to Gitea. GitLab and Gitea / Forgejo as sources, and Forgejo, GitHub and GitLab as destinations, are available as beta options on the same page; see [Sources](/docs/sources/) and [Destinations](/docs/destinations/) once the app is running.
|
||||
This guide walks the most common path, GitHub to Gitea. GitLab, Gitea / Forgejo and Git URL sources, and Forgejo, GitHub and GitLab destinations, are set up on the same page; see [Sources](/docs/sources/) and [Destinations](/docs/destinations/) once the app is running.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
layout: '../../layouts/DocsLayout.astro'
|
||||
title: Sources
|
||||
description: Where Gitea Mirror pulls repositories from. GitHub is the default; GitLab, Gitea or Forgejo, and plain git URLs are available as beta sources.
|
||||
description: Where Gitea Mirror pulls repositories from. GitHub is the default; GitLab and Gitea or Forgejo work too, and plain git URLs are available as a beta source.
|
||||
---
|
||||
|
||||
# Sources
|
||||
@@ -11,11 +11,11 @@ A source is the host Gitea Mirror pulls repositories from. Each account can conn
|
||||
| Source | Covers | Default instance |
|
||||
| --- | --- | --- |
|
||||
| GitHub | github.com and GitHub Enterprise | `https://github.com` |
|
||||
| GitLab (beta) | gitlab.com and self-hosted GitLab | `https://gitlab.com` |
|
||||
| Gitea / Forgejo (beta) | Codeberg and any self-hosted Gitea or Forgejo | `https://codeberg.org` |
|
||||
| GitLab | gitlab.com and self-hosted GitLab | `https://gitlab.com` |
|
||||
| Gitea / Forgejo | Codeberg and any self-hosted Gitea or Forgejo | `https://codeberg.org` |
|
||||
| Git URL (beta) | Any host that can be cloned over http(s): cgit, gitweb, Gitflic, kernel.org and the like | none, the host is required |
|
||||
|
||||
GitHub to Gitea is the supported path. GitLab, Gitea / Forgejo and Git URL carry a BETA pill in the dropdown: they are tested end to end against real hosts, but have had less time in the field. Sources other than GitHub also carry a short note under the dropdown saying what they cannot mirror.
|
||||
GitHub, GitLab and Gitea / Forgejo are supported. Git URL carries a BETA pill in the dropdown: it is tested end to end against real hosts, but has had little time in the field. Sources other than GitHub also carry a short note under the dropdown saying what they cannot mirror.
|
||||
|
||||
<img src="/assets/sources.png" alt="The Add source editor on the Sources card, with the Source dropdown, instance URL, username and token fields" class="dark:hidden" />
|
||||
<img src="/assets/sources_dark.png" alt="The Add source editor on the Sources card, with the Source dropdown, instance URL, username and token fields" class="hidden dark:block" />
|
||||
|
||||
@@ -15,7 +15,7 @@ import { PromoBanner } from "../components/PromoBanner";
|
||||
const siteUrl = "https://gitea-mirror.raylabs.io";
|
||||
const title = "GitHub Backup Tool | Mirror GitHub, GitLab and Forgejo to Self-Hosted Gitea";
|
||||
const description =
|
||||
"Automatically backup GitHub repos to your own Gitea server with issues, PRs, releases and wiki. GitLab, Codeberg and Forgejo sources and GitHub or GitLab push targets in beta. Self-hosted, Docker and Helm ready, free.";
|
||||
"Automatically backup GitHub repos to your own Gitea server with issues, PRs, releases and wiki. GitLab, Codeberg and Forgejo sources too, and GitHub or GitLab push targets in beta. Self-hosted, Docker and Helm ready, free.";
|
||||
const keywords =
|
||||
"github backup, github backup self hosted, github repository backup, backup github to nas, github disaster recovery, offline github backup, github backup docker, automatic github backup, github account backup, gitea mirror, self-hosted git backup, repository sync, github to gitea, gitlab to gitea, codeberg backup, forgejo mirror, github to gitlab mirror, git mirror, code backup, helm chart, self-hosted backup solution";
|
||||
|
||||
@@ -32,7 +32,7 @@ const structuredData = {
|
||||
priceCurrency: "USD",
|
||||
},
|
||||
description:
|
||||
"Automatic GitHub repository backup to self-hosted Gitea. Preserves complete history, issues, PRs, and releases. Mirrors from GitLab, Gitea and Forgejo and pushes to GitHub, GitLab and Forgejo in beta. Free alternative to cloud backup services.",
|
||||
"Automatic GitHub repository backup to self-hosted Gitea. Preserves complete history, issues, PRs, and releases. Also mirrors from GitLab, Gitea and Forgejo, and pushes to GitHub and GitLab in beta. Free alternative to cloud backup services.",
|
||||
url: siteUrl,
|
||||
author: {
|
||||
"@type": "Organization",
|
||||
@@ -49,7 +49,7 @@ const structuredData = {
|
||||
"Automated scheduled backups",
|
||||
"Self-hosted (full data ownership)",
|
||||
"Metadata preservation (issues, PRs, releases, wiki)",
|
||||
"GitLab, Gitea and Forgejo sources (beta)",
|
||||
"GitLab, Gitea and Forgejo sources",
|
||||
"Push mirrors to GitHub and GitLab (beta)",
|
||||
"API keys for automation",
|
||||
"Cleanup and reconcile of mirrors",
|
||||
|
||||
@@ -11,7 +11,7 @@ canonical: "https://gitea-mirror.raylabs.io/use-cases/backup-codeberg-forgejo-re
|
||||
|
||||
Plenty of projects live on Codeberg or on somebody else's Forgejo. Plenty of homelabs run two Gitea instances, one that people push to and one that only exists as a copy. Since version 3.30 Gitea Mirror covers both: the **Source** dropdown has a **Gitea / Forgejo** option, and the **Destination** dropdown has **Forgejo** next to Gitea.
|
||||
|
||||
Both are marked **beta**. Forgejo and Gitea share the same API, so everything the Gitea path supports works, but they have had less time in the field than the GitHub to Gitea default.
|
||||
Both started out as a beta and are now supported. Forgejo and Gitea share the same API, so everything the Gitea path supports works.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ canonical: "https://gitea-mirror.raylabs.io/use-cases/backup-github-repositories
|
||||
|
||||
GitHub is great—right up until an outage, SSO change, or account lockout strands your projects. Gitea Mirror keeps a self-hosted copy of everything (history, metadata, LFS) so you can keep working locally. This playbook walks through the minimal Docker setup the project ships with and shows how to prove your backups actually work.
|
||||
|
||||
This playbook covers the default path, GitHub into Gitea. Since 3.30 the source can also be [GitLab](/use-cases/mirror-gitlab-to-gitea/) or [Codeberg, Forgejo and Gitea](/use-cases/backup-codeberg-forgejo-repositories/), and since 3.31 the destination can be Forgejo, or [GitHub or GitLab](/use-cases/mirror-to-github-or-gitlab/) through a push engine. Those paths are marked beta in the settings.
|
||||
This playbook covers the default path, GitHub into Gitea. Since 3.30 the source can also be [GitLab](/use-cases/mirror-gitlab-to-gitea/) or [Codeberg, Forgejo and Gitea](/use-cases/backup-codeberg-forgejo-repositories/), and since 3.31 the destination can be Forgejo, or [GitHub or GitLab](/use-cases/mirror-to-github-or-gitlab/) through a push engine. The GitHub and GitLab push targets are marked beta in the settings.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ canonical: "https://gitea-mirror.raylabs.io/use-cases/mirror-gitlab-to-gitea/"
|
||||
|
||||
## GitLab is a source now
|
||||
|
||||
Gitea Mirror started as a GitHub to Gitea tool, and that is still the default and the best tested path. Since version 3.30 the connection card has a **Source** dropdown, and GitLab is one of the options. It is marked **beta**: it is tested end to end against gitlab.com and a self-hosted instance before every release, but it has had less time in the field than GitHub.
|
||||
Gitea Mirror started as a GitHub to Gitea tool, and that is still the default and the best tested path. Since version 3.30 the connection card has a **Source** dropdown, and GitLab is one of the options. It started out as a beta and is now supported, after months of use and fixes against gitlab.com and self-hosted instances.
|
||||
|
||||
The mechanics are the same as for GitHub. Gitea does the actual mirroring through its pull mirror feature, which treats GitLab as a plain git remote. Gitea Mirror's job is to find your projects through the GitLab API, create the mirrors in the right place, keep them on a schedule, and notice when a project disappears upstream.
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ canonical: "https://gitea-mirror.raylabs.io/use-cases/sync-github-to-self-hosted
|
||||
|
||||
You may still collaborate on GitHub every day, yet want a LAN Gitea copy you control. Gitea Mirror bridges the two: it tracks owners, auto-discovers repos, mirrors metadata, and keeps a local instance only minutes behind upstream without hand-written cron jobs.
|
||||
|
||||
GitHub to Gitea is the default and the best tested path. If your code lives elsewhere, the same setup works with a [GitLab source](/use-cases/mirror-gitlab-to-gitea/) or a [Codeberg, Forgejo or Gitea source](/use-cases/backup-codeberg-forgejo-repositories/), both beta, with the difference that issues, pull requests and releases are only read from GitHub for now.
|
||||
GitHub to Gitea is the default and the best tested path. If your code lives elsewhere, the same setup works with a [GitLab source](/use-cases/mirror-gitlab-to-gitea/) or a [Codeberg, Forgejo or Gitea source](/use-cases/backup-codeberg-forgejo-repositories/), with the difference that issues and pull requests are only read from GitHub, and releases from GitHub, Gitea and Forgejo.
|
||||
|
||||
## Requirements
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ GitHub can change pricing, authentication rules, or terms without notice. With G
|
||||
|
||||
### 5. Keep a second copy on a different host
|
||||
|
||||
Since 3.31 the destination does not have to be Gitea. **Forgejo** is a named destination, and **GitHub** and **GitLab** are push destinations (all three beta). A second Gitea Mirror account with a GitLab group as its destination gives you a copy on a different company's infrastructure at no extra cost, and the push engine keeps it identical to the source on every sync. Each account has one source and one destination, so run one account per direction. See [Mirror to GitHub or GitLab](/use-cases/mirror-to-github-or-gitlab/).
|
||||
Since 3.31 the destination does not have to be Gitea. **Forgejo** is a named destination, and **GitHub** and **GitLab** are push destinations (those two in beta). A second Gitea Mirror account with a GitLab group as its destination gives you a copy on a different company's infrastructure at no extra cost, and the push engine keeps it identical to the source on every sync. Each account has one source and one destination, so run one account per direction. See [Mirror to GitHub or GitLab](/use-cases/mirror-to-github-or-gitlab/).
|
||||
|
||||
### 6. Watch for drift
|
||||
|
||||
|
||||