同步
使用 rsync 来进行同步,linux 系统中 rsync 速度快于 rclone。 rclone 只是多提供了云服务商。
服务端安装 rsync
sudo yum install -y rsync
服务端配置
vim /etc/rsyncd.conf
# global config
port=888
uid = xyz
gid = xyz
use chroot = no
max connections = 200
timeout = 300
motd file = /var/rsyncd/rsync.motd
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
dont compress = *.gz *.tgz *.zip *.z *.Z *.rpm *.deb *.bz2
# module
[hugo]
path = /home/ptz/www/public/
ignore errors
read only = false
write only = false
list = false
auth users = rsync_backup
secrets file = /etc/rsyncd.passwd
标签:rsync,log,hugo,使用,file,rsyncd,var
From: https://www.cnblogs.com/ramlife/p/17060368.html