{"repo":"Tanq16/backhub","free":true,"listed":false,"github":"https://github.com/Tanq16/backhub","clone":"git clone https://github.com/Tanq16/backhub.git","description":"Backhub helps maintain backups of multiple GitHub repos as full local mirrors.","language":"Go","stars":73,"topics":["backup","backup-utility","git","github","github-backup","go","golang","repository-backup","automation","homelab"],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"BackHub &nbsp; BackHub is a simple GitHub repository backup tool that creates complete local mirrors of your repositories. --- Features - Full repository mirroring including all branches, tags, and history - Concurrent backup processing for multiple repositories defined in a YAML config file - GitHub token-based authentication (to be used in an environment variable) - Easy restoration capability due to it being local mirror - Multi-arch and multi-OS binary for simple one-time usage - A unique output provider with a fancy and detailed progress monitoring system Installation Binary The easiest way to use Backhub is to download it from the project releases for your OS and architecture. Development Build Build from Source Usage Backhub uses an environment variable to authenticate to GitHub. To do this, set your GH TOKEN variable. This can be done inline with: Alternatively, export it to your shell session with: With the environment variable exported, backhub can be directly executed multiple times from the command line like so: YAML Config File BackHub uses a simple YAML configuration file: For Docker, put the config file in the mounted directory and name it config.yaml . Using the Local Mirrors To use a local mirror as a Git repository source (like when you need to restore from the backup), the following can be done: 1. Directly pull or clone from the mirror treating it as a backup remote in an existing repository: 2. Serve the mirror via a local git server and use it : 3. Use t","default_branch":null,"files":null,"tree":[],"storefront":"/r/Tanq16","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Tanq16/backhub/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}