栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > 服务器

Windows rsync服务器备份配置实例

服务器 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

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文件实例:
复制代码 代码如下:
@echo off
title fileserver mirror backup......
rsync -vzrtopg --progress --delete --exclude=*.tmp rsync@192.168.1.9::test /cygdrive/f/a

最后备份时可将客户端命令写成bat,批处理,再添加到系统的计划任务执行。
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/185310.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号