2022年8月4日 星期四

Debian 11 安裝 Rsync Server

apt install rsync

編輯  /lib/systemd/system/rsync.service
[Service]
ExecStart=/usr/bin/rsync --daemon --no-detach --protocol 30
RestartSec=1

systemctl enable rsync

編輯 /etc/rsyncd.conf
port = 873

[rsync01]
max connections = 6
path = /data/rsync01
uid = root
gid = root
auth users = rsync01
secrets file = /etc/rsyncd.secrets
list = yes
read only = no
write only = no
use chroot = yes
lock file = /run/lock/rsyncd-rsync01

編輯  /etc/rsyncd.secrets
rsync01:password

沒有留言: