Sign inSign up

funnyzak/git-sync

By funnyzak

Updated about 1 year ago

A CLI tool designed to help you back up your Git repositories.

Image
Developer tools
0

3.5K

funnyzak/git-sync repository overview

git-sync

Docker Tags Image Size Docker Stars Docker Pulls

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

Usage Example

Docker run
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
Docker Compose
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
Configuration

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.

Tag summary

Content type

Image

Digest

sha256:75414ed64

Size

12.9 MB

Last updated

about 1 year ago

docker pull funnyzak/git-sync