Giter VIP home page Giter VIP logo

github-archive's Introduction

github-archive

Create mirrors of GitHub repos

Features

  • Create backups from GitHub
    • Starred repos
    • Public repos of any user
    • Private and public repos you own
  • Define multiple jobs for different users and different Gitea destinations

In a nutshell

GitHub repos that were previously open-source sometimes get taken down. github-archive is a cronjob as a Docker image that will poll the repos configured repo sources on GitHub and will automatically create a mirror in your Gitea instance. Gitea will download the repository and can even download wikis, labels, issues, pull requests, releases and milestones. It can also keep the source code in sync as long as the upstream source is available.

You can archive all the repos you ever starred on GitHub or create a private archive of all your public and private repos on GitHub. As github-archive continously polls once it's set up, you can just forget about it and star or create repos as you like. It will take care of the archival for you.

Getting Started

github-archive is a simple Docker image to just host somewhere and run in the background.

docker-compose.yaml

services:
  github-archive:
    image: ghcr.io/kennethwussmann/github-archive:latest
    restart: always
    volumes:
      - ./jobs.yaml:/app/jobs.yaml

jobs.yaml

githubSource:
  accessTokens: "fill-me"
giteaDestination:
  url: https://try.gitea.io/api/v1
  accessToken: "fill-me"
  org: github-archive-test
jobs:
  - type: starred
    name: "Starred Repos"
    schedule: "1 0 * * *"
    githubSource:
      user: "SomeUsername"
  - type: repos
    name: "Public Repos of Someone"
    schedule: "1 0 * * *"
    githubSource:
      user: "ghost"
  - type: repos
    name: "My Private Repos"
    schedule: "1 0 * * *"
    githubSource:
      filter:
        visibility:
          - private

For more details see the Getting Started guide and Configuration guide


Please ensure that the software license of the software you want to archive is actually allowing this use-case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.