feat: update git-sync 0.20.0

This commit is contained in:
arch3rPro
2025-12-04 01:31:12 +08:00
parent fa9c0afe8f
commit 29e2e2d8ad
5 changed files with 85 additions and 2 deletions

View File

@@ -776,7 +776,7 @@ AI驱动的开源代码知识库与文档协作平台支持多模型、多数
🔄 多平台Git仓库自动同步与备份工具支持定时任务和Docker部署
<kbd>latest</kbd> • [官网链接](https://github.com/AkashRajpurohit/git-sync)
<kbd>0.20.0</kbd> • [官网链接](https://github.com/AkashRajpurohit/git-sync)
</td>
</tr>

View File

@@ -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: <username>
tokens: [<token 1>]
# 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)

View File

@@ -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

View File

@@ -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

View File

@@ -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}