Rsync
配置
# vim /etc/rsyncd.conf
写入
uid = nobodygid = nobody port = 873 use chroot = no max connections = 4 syslog facility = local5 pid file = /run/rsyncd.pid
[sync]comment = Welcome to BioArchLinux Sync! path = /usr/share/lilac/Repo list = yes read noly = yes timeout = 6000 ProtectSystem = off timeout = 36000 ignore nonreadable = yes dont compress = *.gz *.tgz *.zip *.z *.rpm *.deb *.iso *.bz2 *.tbz *.xs *.xz *.db *.zst
启动
# systemctl enable rsyncd
- systemctl start rsyncd
防火墙
参见 ufw。
# ufw allow 873/tcp
同步
rsync -rtlivH server_IP/domain::sync/ destdir