复制代码 代码如下:
use chroot = false
strict modes = false
hosts allow = *
log file = rsyncd.log #LOG
pid file = rsyncd.pid
secrets file = password # 这里指定了用户名密码文件在其安装目录里,名字叫 password,其内容是txt编辑为 4899:4899 前面是用户名,后面是密码
# Module definitions
# Remember cygwin naming conventions : c:/work becomes /cygwin/c/work
#
[webbackup]
path = /cygdrive/d/web/ #注意格式,这说明是D盘WEB目录下的4899目录,这是web目录
read only = true #只读
list = no
auth users = 4899 #指定用户名
transfer logging = no #是否记录详细的传输情况
[data]
path = /cygdrive/d/web/sql_back #这是数据库备分目录
read only = true
list = no
auth users = 4899
transfer logging = no
复制代码 代码如下:
rsync -vzrtopg --progress --delete --password-file=/cygdrive/e/password2 4899@61.152.249.18::data /cygdrive/e/web_77/sql_back
新闻热点
疑难解答