-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.conf
More file actions
75 lines (58 loc) · 2.28 KB
/
Copy pathexample.conf
File metadata and controls
75 lines (58 loc) · 2.28 KB
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
###############################################################################
# SyncWarden 公开示例配置
#
# 本文件只使用 RFC 保留域名和虚构参数,不包含任何真实服务器、端口、账号、
# 私钥路径、同步目录、目标目录、名称或运行时间。
#
# 使用方法:
# 1. 将本文件复制为 syncwarden.conf。
# 2. 替换每一个示例值。
# 3. 不要把真实的 syncwarden.conf 提交到公开仓库或发送给无关人员。
###############################################################################
[global]
# 定时同步小时,使用运行 SyncWarden 主机的本地时区。
sync_hours=2,14
# 受管日志保留的自然月数量。
log_retention_months=6
[defaults]
# 是否参加 --scheduled;不影响按 ID 手动执行。
scheduled_sync_enabled=yes
# 默认 SSH 端口、账号和私钥。
port=22
user=backup
key_file=/home/backup/.ssh/id_syncwarden_example
# rsync 连续无协议 I/O 超时、重试次数和重试等待秒数。
# SSH、归档、容量和本地维护命令使用脚本内固定时限。
rsync_timeout_seconds=300
retry_count=1
retry_delays_seconds=60
# 同步镜像和新 ZIP 归档使用的所有者。
owner=backup:backup
# ZIP 归档保留策略。
archive_recent_keep=7
archive_monthly_keep=6
# 目标文件系统最小可用空间和 inode 数量。
min_free_space_mb=1024
min_free_inodes=5000
###############################################################################
# 示例服务器一:演示多个 source。
###############################################################################
[server:sample-primary]
host=source-one.example.net
name=示例主服务器
destination=/srv/syncwarden-sample/mirrors/sample-primary
source=/srv/example-application
source=/var/lib/example-database
###############################################################################
# 示例服务器二:演示账号覆盖和暂停定时同步。
###############################################################################
[server:sample-secondary]
host=source-two.example.org
name=示例辅助服务器
scheduled_sync_enabled=no
port=22
user=archive
key_file=/home/archive/.ssh/id_syncwarden_sample
destination=/mnt/syncwarden-sample/sample-secondary
source=/srv/example-content
rsync_timeout_seconds=600