A CLI tool designed to help you back up your Git repositories.
3.5K
git-sync is a CLI tool designed to help you back up your Git repositories. This tool ensures you have a local copy of your repositories, safeguarding against potential issues such as account bans or data loss.
. This image supports linux/amd64,linux/arm/v7, linux/arm64.
You can pull the images using the following commands:
docker pull funnyzak/git-sync:latest
# GHCR
docker pull ghcr.io/funnyzak/git-sync:latest
# Aliyun
docker pull registry.cn-beijing.aliyuncs.com/funnyzak/git-sync:latest
docker run \
--name=git-sync \
-e PUID=1000 \
-e PGID=1000 \
-v ./git-sync/config.yaml:/git-sync/config.yaml \
-v ./git-backups:/backups \
funnyzak/git-sync:latest
version: '3'
services:
git-sync:
image: funnyzak/git-sync:latest
container_name: git-sync
environment:
- PUID=1000
- PGID=1000
volumes:
- ./git-sync/config.yaml:/git-sync/config.yaml
- ./git-backups:/backups
Here is an example of a config.yaml file:
backup_dir: /backups
clone_type: full
concurrency: 5
exclude_orgs: []
exclude_repos: []
include_forks: false
include_orgs: []
include_repos: []
include_wiki: true
platform: github
raw_git_urls: []
retry:
count: 3
delay: 5
server:
domain: github.com
protocol: https
tokens:
- github_pat_your_token
username: "your_username"
workspace: ""
More information about the configuration can be found here.
More Examples can be found here.
Content type
Image
Digest
sha256:75414ed64…
Size
12.9 MB
Last updated
about 1 year ago
docker pull funnyzak/git-sync