-
Notifications
You must be signed in to change notification settings - Fork 1
/
sync.conf
257 lines (227 loc) · 6.54 KB
/
sync.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
#The Mirrors Sync Shell Set was developed by RangerCD
#本镜像同步脚本组由RangerCD开发
#All components can be modify/reuse without any permission
#所有组件均可以修改/复用而不需要任何授权
#
#This line defines the root of the shell set
#此行定义了脚本组的根目录
SYNC_ROOT=/home/sync/
#This line defines the main log file
#此行定义了主日志文件
MAIN_LOG="$SYNC_ROOT"sync.log
#The sub directory of the shell set, ONLY change when necessary
#脚本组各子目录,仅当必须时修改
LOG_DIR="$SYNC_ROOT"log/
VAR_DIR="$SYNC_ROOT"var/
TMP_DIR="$SYNC_ROOT"tmp/
#The max quantity of log files
#日志文件最大数量
MAX_LOG_FILE=500
#The max retry for each source
#每个上游的最大重试次数
EACH_SOURCE_MAX_RETRY=5
#The timeout for syncing a single file (minute)
#同步单个文件的最大超时时间(分钟)
EACH_SOURCE_TIMEOUT=30
#The sum of parallel sync
#并行同步进程总和
PARALLEL_POOL=30
#
#放弃重试直接更换上游的错误
SKIP_ERRORS=(
"error in socket IO (code 10)"
)
####Go Access Support########################################################
#
#日志目录
GO_LOG_DIR=/mirrors/logs/
#
#目标网页目录
GO_HTML_DIR=/var/www/html/server/goaccess/
#Here is a example for a linux mirror named example
#以下为一个名为example的linux镜像示例
#
#Besure each source is in assignment format
#保证每一个镜像都符合赋值语句格式
#
#example(){
# alias="Example Linux"
# destination=/mirrorswlzx/example/
# source=(
# rsync://test1.test/example/
# rsync://test2.test/example/
# )
#}
archlinux(){
#alias="Arch Linux"
destination=/mirrorswlzx/archlinux/
source=(
#rsync://mirror.us.leaseweb.net/archlinux/
rsync://mirrors.hust.edu.cn/archlinux/
#rsync://mirrors.hustunique.com/archlinux/
)
}
centos(){
#alias="CentOS"
destination=/mirrorswlzx/centos/
source=(
#rsync://msync.centos.org/CentOS/
rsync://us-msync.centos.org/CentOS/
rsync://mirrors.hust.edu.cn/centos/
#rsync://eu-msync.centos.org/CentOS/
)
}
debian(){
#alias="debian"
destination=/mirrorsxgxy/debian/
source=(
rsync://ftp.cn.debian.org/debian/
rsync://mirrors.hust.edu.cn/debian/
)
}
debian-cd(){
#alias="debian-cd"
destination=/mirrorsxgxy/debian-cd/
source=(
rsync://ftp.cn.debian.org/debian-cd/
#rsync://ftp.jaist.ac.jp/debian-cd/
#rsync://cdimage.debian.org/private/debian-cd/
rsync://mirrors.hust.edu.cn/debian-cd/
)
}
debian-security(){
#alias="debian-security"
destination=/mirrorsxgxy/debian-security/
source=(
#rsync://security.debian.org/debian-security/
rsync://mirrors.hust.edu.cn/debian-security/
)
}
deepin(){
#alias="Deepin"
destination=/mirrorswlzx/deepin/
source=(
rsync://packages.linuxdeepin.com/packages/
#rsync://mirrors.hust.edu.cn/deepin/
)
}
deepin-cd(){
#alias="Deepin CD"
destination=/mirrorswlzx/deepin-cd/
source=(
rsync://packages.linuxdeepin.com/cdimage/
#rsync://mirrors.hust.edu.cn/deepin-releases/
)
}
eclipse(){
#alias="eclipse"
destination=/mirrorsxgxy/eclipse/
source=(
#rsync://rsync.osuosl.org/eclipse/
rsync://mirrors.hust.edu.cn/eclipse/
#rsync://mirrors.hustunique.com/eclipse/
)
}
epel(){
#alias="EPEL"
destination=/mirrorswlzx/epel/
source=(
#rsync://dl.fedoraproject.org/fedora-epel/
rsync://mirrors.hust.edu.cn/epel/
)
}
fedora(){
#alias="fedora"
destination=/mirrorsxgxy/fedora/
source=(
#rsync://dl.fedoraproject.org/fedora-enchilada/linux/
#rsync://ftp.heanet.ie/fedora-enchilada/linux/
rsync://mirrors.hustunique.com/fedora/
)
}
gentoo(){
#alias="Gentoo"
destination=/mirrorswlzx/gentoo/
source=(
#rsync://rsync.cn.gentoo.org/gentoo/
#rsync://mirrors.hust.edu.cn/gentoo/
rsync://mirrors.hustunique.com/gentoo/
#rsync://mirrors.ustc.edu.cn/gentoo/
)
}
gentoo-portage(){
#alias="Gentoo Portage"
destination=/mirrorswlzx/gentoo-portage/
source=(
#rsync://ftp.ussg.iu.edu/gentoo-portage/
#rsync://rsync.us.gentoo.org/gentoo-portage/
rsync://mirrors.hustunique.com/gentoo-portage/
rsync://mirrors.ustc.edu.cn/gentoo-portage/
)
}
opensuse(){
#alias="openSUSE"
destination=/mirrorswlzx/opensuse/
source=(
#rsync://stage.opensuse.org/opensuse-full-with-factory/opensuse/
rsync://mirrors.hust.edu.cn/opensuse/
rsync://mirrors.hustunique.com/opensuse/
rsync://mirrors.ustc.edu.cn/opensuse/
)
}
packman(){
#alias="packman"
destination=/mirrorsxgxy/packman/
source=(
rsync://mirrors.hust.edu.cn/packman/
)
}
raspbian(){
#alias="Raspbian"
destination=/mirrorswlzx/raspbian/
source=(
#rsync://archive.raspbian.org/archive/
rsync://mirrors.hust.edu.cn/raspbian/
)
}
remi(){
#alias="remi"
destination=/mirrorswlzx/remi/
source=(
#rsync://remi.famillecollet.com/
rsync://mirrors.hustunique.com/remi/
)
}
repoforge(){
#alias="repoforge"
destination=/mirrorswlzx/repoforge/
source=(
#rsync://ftp.riken.jp/repoforge/
rsync://mirrors.hustunique.com/repoforge/
)
}
rpmfusion(){
#alias="RPM Fusion"
destination=/mirrorswlzx/rpmfusion/
source=(
#rsync://download1.rpmfusion.org/rpmfusion
#rsync://fr2.rpmfind.net/linux/rpmfusion/
rsync://mirrors.hust.edu.cn/rpmfusion/
#rsync://mirrors.hustunique.com/rpmfusion/
#rsync://mirrors.ustc.edu.cn/rpmfusion/
)
}
ubuntu(){
#alias="Ubuntu"
destination=/mirrorswlzx/ubuntu/
source=(
rsync://archive.ubuntu.com/ubuntu
)
}
ubuntu-releases(){
#alias="Ubuntu Releases"
destination=/mirrorswlzx/ubuntu-releases/
source=(
rsync://rsync.releases.ubuntu.com/releases/
)
}