Windows rsync服务器备份配置实例
command:rsync -vzrtopg --progress --delete --exclude=*.txt rsync@192.168.1.9::test /cygdrive/f/a
服务器端rsyncd.conf实例:
服务器端软件下载地址https://www.jb51.net/softs/16780.html
use chroot = no
#strict modes = false
hosts allow = *
log file = rsyncd.log
pid file = rsyncd.pid
uid=administrator
gid=administrator
max connections=4
# Module definitions
# Remember cygwin naming conventions : c:work becomes /cygwin/c/work
#
[test]
path = /cygdrive/j/byq/pdf
ignore errors
read only = yes
auth users=rsync
transfer logging = yes
secrets file = /cygdrive/c/rsync.pas
服务器端c:rsync.pas实例:
rsync:12345
当然你也可以在当前目录下新建一个rsync.pas但上面的secrets file = rsync.pas即可
客户端软件https://www.jb51.net/softs/16779.html
客户端使用备份命令:
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a
备份时应注意--delete选项,依目标而定
客户端bat文件实例:
复制代码 代码如下:
栏 目:Windows
本文地址:https://www.idc91.com/fuwuqizl/2908.html
您可能感兴趣的文章
- 06-17windows server时间同步设置的方法步骤
- 06-17Windows上安装WSL+Ubuntu来运行Linux环境
- 06-17Windows服务器禁用ping功能的操作指南
- 06-17IIS服务器禁止某个IP或IP地址范围访问网站的方法
- 06-17IIS中配置HTTPS证书的实现步骤
- 06-17Windows Server使用IIS作为SMTP服务器的实现
- 06-17IIS部署Linux环境下的cer证书步骤
- 06-17Windows 2012 R2自建安装IIS 8.5的实现步骤
- 06-17windows server 防火墙添加出入站规则方法小结
- 06-17Windows Server 2016 使用IIS配置FTP


阅读排行
推荐教程
- 05-27Windows Server 2012 没有远程桌面授权服务器可以提供许可证,远程会话被中
- 06-12windows2008+iis7环境SSL部署https证书
- 11-07windows server2016安装oracle 11g的图文教程
- 06-12windows2003系统如何部署SSL证书站点https访问
- 05-27Win10下配置IIS10并支持调试ASP程序的步骤
- 05-27Windows 2008任务计划执行bat脚本失败返回0x1的解决方法
- 11-07windows server 2019 无法安装AMD Radeon RX 6600 XT
- 11-07Windows server 2012 NTP时间同步的实现
- 11-07Windows Server 2022 超融合部署(图文教程)
- 05-27IIS 完全重装操作步骤