From 29e2e2d8ada87d378f84420b3070ba8acba5cf86 Mon Sep 17 00:00:00 2001
From: arch3rPro <30855883+arch3rPro@users.noreply.github.com>
Date: Thu, 4 Dec 2025 01:31:12 +0800
Subject: [PATCH] feat: update git-sync 0.20.0
---
README.md | 2 +-
apps/git-sync/0.20.0/config.yaml | 41 +++++++++++++++++++++++++
apps/git-sync/0.20.0/data.yml | 30 ++++++++++++++++++
apps/git-sync/0.20.0/docker-compose.yml | 12 ++++++++
apps/git-sync/latest/docker-compose.yml | 2 +-
5 files changed, 85 insertions(+), 2 deletions(-)
create mode 100644 apps/git-sync/0.20.0/config.yaml
create mode 100644 apps/git-sync/0.20.0/data.yml
create mode 100644 apps/git-sync/0.20.0/docker-compose.yml
diff --git a/README.md b/README.md
index 443f830..5d741d0 100644
--- a/README.md
+++ b/README.md
@@ -776,7 +776,7 @@ AI驱动的开源代码知识库与文档协作平台,支持多模型、多数
🔄 多平台Git仓库自动同步与备份工具,支持定时任务和Docker部署
-latest • [官网链接](https://github.com/AkashRajpurohit/git-sync)
+0.20.0 • [官网链接](https://github.com/AkashRajpurohit/git-sync)
diff --git a/apps/git-sync/0.20.0/config.yaml b/apps/git-sync/0.20.0/config.yaml
new file mode 100644
index 0000000..0cbdbe5
--- /dev/null
+++ b/apps/git-sync/0.20.0/config.yaml
@@ -0,0 +1,41 @@
+# Git Sync Configuration
+
+# Repository settings
+include_forks: false # Include forked repositories
+include_wiki: true # Include wiki's
+include_repos: [] # Include specific repositories
+exclude_repos: [] # Exclude specific repositories
+include_orgs: [] # Include repositories from specific organizations
+exclude_orgs: [] # Exclude repositories from specific organizations
+raw_git_urls: [] # Raw valid git URLs
+
+# Authentication
+username:
+tokens: []
+
+# Server settings
+backup_dir: /path/to/backup
+clone_type: bare # Clone type: bare, shallow, mirror or full. Default: bare
+cron: 0 0 * * * # run every 24 hours at 00:00
+concurrency: 5
+retry:
+ count: 3
+ delay: 10 # in seconds
+platform: github
+server:
+ domain: github.com
+ protocol: https
+notification:
+ enabled: true
+ only_failures: false
+ ntfy:
+ topic: 'backup'
+ server: 'https://ntfy.sh' # Optional
+ username: 'akash' # Optional
+ password: 'password' # Optional
+ priority: 4 # Optional (1-5)
+ tags: ['backup'] # Optional
+ gotify:
+ url: 'http://localhost:2444'
+ app_token: 'your_app_token'
+ priority: 4 # Optional (1-5)
\ No newline at end of file
diff --git a/apps/git-sync/0.20.0/data.yml b/apps/git-sync/0.20.0/data.yml
new file mode 100644
index 0000000..67285a4
--- /dev/null
+++ b/apps/git-sync/0.20.0/data.yml
@@ -0,0 +1,30 @@
+additionalProperties:
+ formFields:
+ - default: ./config.yaml
+ edit: true
+ envKey: GITSYNC_CONFIG_PATH
+ labelEn: Config Path
+ labelZh: 配置文件路径
+ required: true
+ type: text
+ - default: ./backups
+ edit: true
+ envKey: GITSYNC_BACKUP_PATH
+ labelEn: Backup Path
+ labelZh: 备份目录
+ required: true
+ type: text
+ - default: 1000
+ edit: true
+ envKey: PUID
+ labelEn: PUID
+ labelZh: 用户ID(PUID)
+ required: true
+ type: number
+ - default: 1000
+ edit: true
+ envKey: PGID
+ labelEn: PGID
+ labelZh: 用户组ID(PGID)
+ required: true
+ type: number
\ No newline at end of file
diff --git a/apps/git-sync/0.20.0/docker-compose.yml b/apps/git-sync/0.20.0/docker-compose.yml
new file mode 100644
index 0000000..d1761ff
--- /dev/null
+++ b/apps/git-sync/0.20.0/docker-compose.yml
@@ -0,0 +1,12 @@
+
+services:
+ git-sync:
+ image: ghcr.io/akashrajpurohit/git-sync:v0.20.0
+ container_name: git-sync
+ environment:
+ - PUID=${PUID}
+ - PGID=${PGID}
+ volumes:
+ - ${GITSYNC_CONFIG_PATH}:/git-sync/config.yaml
+ - ${GITSYNC_BACKUP_PATH}:/backups
+ restart: unless-stopped
\ No newline at end of file
diff --git a/apps/git-sync/latest/docker-compose.yml b/apps/git-sync/latest/docker-compose.yml
index ae1a0d2..7432333 100644
--- a/apps/git-sync/latest/docker-compose.yml
+++ b/apps/git-sync/latest/docker-compose.yml
@@ -1,7 +1,7 @@
services:
git-sync:
- image: akashrajpuroh1t/git-sync:latest
+ image: ghcr.io/akashrajpurohit/git-sync:latest
container_name: git-sync
environment:
- PUID=${PUID}