惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
人人都是产品经理
人人都是产品经理
S
Securelist
P
Proofpoint News Feed
H
Help Net Security
S
Schneier on Security
T
Tenable Blog
C
Cisco Blogs
S
Security @ Cisco Blogs
博客园 - 司徒正美
博客园 - 叶小钗
Cisco Talos Blog
Cisco Talos Blog
Google DeepMind News
Google DeepMind News
C
Cybersecurity and Infrastructure Security Agency CISA
Google Online Security Blog
Google Online Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hacker News: Ask HN
Hacker News: Ask HN
NISL@THU
NISL@THU
云风的 BLOG
云风的 BLOG
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
W
WeLiveSecurity
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Jina AI
Jina AI
腾讯CDC
WordPress大学
WordPress大学
Simon Willison's Weblog
Simon Willison's Weblog
Vercel News
Vercel News
小众软件
小众软件
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
AWS News Blog
AWS News Blog
雷峰网
雷峰网
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
博客园 - 聂微东
F
Full Disclosure
量子位
Scott Helme
Scott Helme
宝玉的分享
宝玉的分享
A
About on SuperTechFans
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Schneier on Security
Schneier on Security
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
K
Kaspersky official blog
AI
AI
SecWiki News
SecWiki News
Webroot Blog
Webroot Blog
Martin Fowler
Martin Fowler

博客园 - 成都兰斯

南京电信IPTV折腾记 acme在群晖下自动更新证书 群晖3622使用nvme硬盘 curl 绑定域名访问 nginx日志分析工具goaccesss Java和C#排序差异 zte交换机 操作 SQL Server 数据的索引引发的血案 Dell服务器通过IPMI调整风扇转速 centos6安装goaccess ipmi调整超微主板 N1 救砖 超微主板不识别M2-解决方案 Centos7安装zookpeer Centos7 安装Java8 通过CMD命令行打开防火墙端口 Windows win10 L2TP拨号 Esxi直通板载Sata Esxi 增加网卡驱动 生成ISO
Win下Rsync安装
成都兰斯 · 2020-11-04 · via 博客园 - 成都兰斯

目前的cwRsyncServer的免费版本为4.0.5和4.1.0

服务端操作:

下载安装,安装4.1.0后,默认配置文件有点问题。

修改为如下配置:

uid = 0
gid = 0

use chroot = false
strict modes = false
hosts allow = *
lock file = rsyncd.lock 

max connections = 5
port = 28950


log file = rsyncd.log

# Module definitions
# Remember cygwin naming conventions : c:\work becomes /cygwin/c/work
#
[test]
path = /cygdrive/c/work/test
auth users = admin
secrets file = /cygdrive/d/Rsync/rsync_db.ps
read only = no
write only = no list
= yes transfer logging = yes

其中port为开放端口。

服务器端的 rsync_db.ps为用户名和密码配置文件,需要注意,此配置文件里需同时存放用户名和密码,采用user:passwd格式。同时用户名与auth users保持一致。

客户端操作:

客户端采用推到服务器的模式。

rsync --port=28950 -avz /usr/local/tmp/ --password-file=/etc/rsync1.pwd admin@192.168.0.2::test

客户端的密码文件,仅需要密码。

为防止带宽占用过多,限制带宽为100mb/内。增加参数如下:--bwlimit=10000

bwlimit代表限速,单位为K Bytes/s。

 rsync主要参数参考:
 rsync  源  目标

# rsync -av src/ dest/ --将 src 目录里的所有的文件同步至 dest 目录(不包含src本身)
# rsync -av src dest/ --将 src 目录包括自己整个同步至 dest 目录