- 浏览: 1745714 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (723)
- IE 国际化 (1)
- java (310)
- python (52)
- Spring (101)
- eclipse (43)
- birt (10)
- exe4j (1)
- ActiveMQ (3)
- HornetQ (7)
- Ext (16)
- Linux (50)
- james (1)
- mail (3)
- 经验 (288)
- tomcat (5)
- Netty (3)
- ant (6)
- rsync (2)
- MD5 (3)
- 正则表达式 (3)
- 非技术 (59)
- mysql (28)
- sftp (1)
- Commons (2)
- oracle (3)
- vsftp (1)
- jdoc (1)
- socket (3)
- SEDA (2)
- UUID (1)
- quartz (7)
- javascript (50)
- sql (5)
- array (3)
- POI (3)
- redis (2)
- junit (4)
- 二维码 (1)
- jdk (8)
- h2 (6)
- maven (37)
- JVM (5)
- html (4)
- css (1)
- excel (4)
- myeclipse (2)
- scala (0)
- jQuery (5)
- log (10)
- slf4j (2)
- log4j (9)
- REST (15)
- guava (18)
- Joda-Time (7)
- ini4j (1)
- 配置文件 (2)
- lucene (1)
- database (3)
- curator (2)
- zookeeper (3)
- 并发 (2)
- jetty (6)
- ehcache (5)
- windows (1)
- protobuf (1)
- select2 (2)
- easyui (10)
- Freemarker (1)
- Filter (1)
- twisted (1)
- DateTime (11)
- mockrunner (1)
- DataSource (4)
- ajax (1)
- shell (18)
- powermockito (5)
- json (5)
- lombok (1)
- jointjs (1)
- cookie (1)
- mybatis (11)
- 加密解密 (2)
- 安全 (2)
- web (1)
- notepad++ (3)
- mac (48)
- sublime (14)
- git (7)
- docker (10)
- jar (1)
- gson (5)
- ubuntu (3)
- 模式 (1)
- neo4j (2)
- elasticsearch (1)
- OmniGranffle (1)
- ASCII (1)
- jdbc (3)
- kafka (1)
- MQ (1)
- chrome (3)
- 华为 (1)
- 路由器 (1)
- api (2)
- 架构 (1)
- 设计模式 (1)
- pip (4)
- springboot (48)
- 数据库 (4)
- thread (1)
- java.thread (1)
- sqlite (1)
- postman (1)
- springboot-actuator (2)
- jwt (1)
- token (1)
- brew (9)
- vim (1)
- virtualbox (1)
- Swagger (1)
- spring-retry (3)
- 调度 (1)
- item2 (5)
- graph (12)
- jgrapht (12)
- tuple (1)
- hadoop (5)
- curl (1)
- 算法 (3)
- Jekyll (1)
- github (1)
- ssh-keygen (1)
- zip (2)
- http (2)
- RestTemplate (8)
- 文件处理 (2)
- XStream (1)
- XML (3)
- JAXB (1)
- 笛卡尔积 (2)
- hive (1)
- 搜狗输入法 (1)
- 常用java类 (2)
- nginx (1)
- log4j2 (1)
- drawio (2)
- 安卓 (1)
- 小米 (1)
- okhttp (1)
- requests (1)
- 格式化 (2)
- MySQL Workbench (1)
- 分布式 (1)
- zip4j (1)
- hbase (5)
- hikari (1)
- javers (1)
- pydatetime (4)
- pyassert (1)
- pylog (2)
- tree (2)
- download (1)
- zeppelin (1)
- utils (2)
- wget (1)
- 鼠标 (1)
- 位运算 (2)
- open api (1)
- 域名 (1)
最新评论
-
youngcoder:
haohaohao~
Spring cache 注解功能不起作用的解决方案 -
kanpiaoxue:
lixz 写道有具体实例demo吗好多年前写的了。你还是去官网 ...
spring batch(一):基础部分 -
lixz:
有具体实例demo吗
spring batch(一):基础部分 -
BuDongOrz:
...
Spring MVC controller 读取配置文件 -
hvang1988:
理解错了,原来还是计数,不是时间
spring batch(二):核心部分(1):配置Spring batch
----------- rsync 简明教程 ----------------
@auther: kanpiaoxue
Date time: 2011/10/14 12:57:14
---------- [example] ----------------------
[purpose]
192.168.123.54 rsync server
192.168.123.16 rsync client
client transfer the data to server.
[server setting setup]
进入到 123.54,进行服务器端配置。
#vim /etc/xinetd.d/rsync
把 disable = yes 修改为 disable = no
#/etc/init.d/xinetd restart
#rsync --daemon (启动rsync 的守护进程。server端需要开启)
#vim /etc/rsyncd.conf (创建或者修改rsync.conf文件)
内容如下:
#--------------------- start
uid = root
gid = root
use chroot = no
max connections = 10
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[WEBDIR]
path=/usr/local/rsync/
comment= bi webdir backup
read only=no
use chroot=no
strict modes = no
transfer logging=yes
ignore errors=yes
auth users = rsync
secrets file = /etc/rsyncd.secrets
#--------------------- end
多文件配置
#vim /etc/rsyncd.conf (创建或者修改rsyncd.conf文件)
内容如下:
#--------------------- start
uid = root
gid = root
use chroot = no
max connections = 10
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
log file = /var/log/rsyncd.log
[MAILMARKETINGUPLOADFOLDER]
path=/webdir/tomcat50/webapps/www/report2/mailMarketingUploadFolder
comment= bi webdir backup
read only=no
use chroot=no
strict modes = no
transfer logging=yes
ignore errors=yes
auth users = rsync
secrets file = /etc/rsyncd.secrets
[UPLOAD]
path=/webdir/tomcat50/webapps/www/report2/upload
comment= bi webdir backup
read only=no
use chroot=no
strict modes = no
transfer logging=yes
ignore errors=yes
auth users = rsync
secrets file = /etc/rsyncd.secrets
[UPLOADIMAGE]
path=/webdir/tomcat50/webapps/www/report2/uploadImage
comment= bi webdir backup
read only=no
use chroot=no
strict modes = no
transfer logging=yes
ignore errors=yes
auth users = rsync
secrets file = /etc/rsyncd.secrets
[BIRT_REPORTS]
path=/webdir/tomcat50/webapps/www/birt_reports
comment= bi birt reports backup
read only=no
use chroot=no
strict modes = no
transfer logging=yes
ignore errors=yes
auth users = rsync
secrets file = /etc/rsyncd.secrets
#--------------------- end
创建密码文件:
#vim /etc/rsyncd.secrets 内容为: rsync:123456
#chomd 600 /etc/rsyncd.secrets (修改权限,注意:密码文件的权限必须是 600)
[client setting setup]
创建密码文件:
#vim /etc/rsyncd.secrets 内容为: 123456
#chmod 600 /etc/rsyncd.secrets (修改权限,注意:密码文件的权限必须是 600)
client 不需要进行额外的配置,直接运行命令就可以。如下:
rsync -av /usr/local/rsync/ --password-file=/etc/rsync.secrets rsync@192.168.182.130::WEBDIR/
【注意】
client端的密码文件里面仅仅是密码,如上面的例子:123456
server端的密码文件里面是用户名和密码,格式如下:rsync:123456
还有密码文件的权限必须是 600
unexpected tag 3 [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(828) [sender=2.6.8]
网上说,rsync的2.6.8版本有个BUG,进行多模块同步时,报错。需要进行升级到3.0以上的版本。
rsync升级为最新版本
rsync3.0.8安装
rsync 3.X采用的是incremental file list,与原来的 2.X相比,现在是一边列表一边备份(添加或删除)。这对于大量文件的备份操作来说,无疑节省了很多时间。实测发现,rsync 3.0.4备份时占用的内存大约时4M,跟一个apache进程占用的内存差不多
一、安装rsync3.0.8
1、 卸载rsync(系统一般会默认安装rsync)
# rpm -qa |grep rsync
# rpm -e rsync-2.6.8-3.1
2、 安装新版rsync
# wget http://www.samba.org/ftp/rsync/src/rsync-3.0.8.tar.gz
# tar -zxvf rsync-3.0.8
# cd rsync-3.0.8
# ./configure
# make
# make install
如果运行 rsync 找不到。执行 whereis rsync 找到目录。
在 /usr/bin/ 下面创建软连接 ln -s /usr/local/rsync/rsync /usr/bin/rsync
相关推荐
windows rsync完整教程.docx
Rsync命令详解 在对rsync服务器配置结束以后,下一步就需要在客户端发出rsync命令来实现将服务器端的文件备份到客户端来。rsync是一个功能非常强大的工具,其命令也有很多功能特色选项。 一、rsync的六种工作模式: ...
搭建Rsync服务,大规模文件迁移
Linux下rsync安装配置使用教程
linux发行版中大多都自带rsync,不过版本比较低,一般都是2.6.X 在2.X的版本中,rsync备份时都是先列表再备份(添加或者删除),在处理大量文件时,会耗费比较多的内存。 备份的时候,rsync扫描到的每个文件(目录也...
ubuntu rsync中文乱码 window ubuntu rsync同步中文乱码.docx
windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类windows rsync工具类
aix下rsync安装包,可用于AIX平台下与linux平台下的数据同步
rsync 服务器架设方法 v0.1b (正在修订中) 作者: 北南南北 来自:Linuxsir.Org 摘要: rsync 是一个快速增量文件传输工具,它可以用于在同一主机备份内部的备分,我们还可以把它作为不同主机网络备份工具之用。...
于是放弃,打算用rsync进行同步,在摸索的过程中走了很多湾路,所以写出来让大家参考,网上的大部份的windows 和 rsync的教程都是存在问题的同步不了! 首先是要进群晖的SSH里进行修改相关配置文件,详细的见附件。 ...
AIX文件同步复制工具RSYNC,rsync-3.1.2 for aix6.1。。。
rsync_架设手册
rsync-3.1.2-4.el7.x86_64.rpm linux系统下rsync安装包
RSYNC软件介绍: rsync是类unix系统下的数据镜像备份工具,从软件的命名上就可以看出来了——remote sync。它的特性如下: 可以镜像保存整个目录树和文件系统。 可以很容易做到保持原来文件的权限、时间、软硬链接...
Rsync version 3.2.3
linux 下rsync文件夹同步配置,可以定时。
rsync+inotify实现实时同步 随着应用系统规模的不断扩大,对数据的安全性和可靠性也提出的更好的要求,rsync在高端业务系统中也逐渐暴露出了很多不足,首先,rsync同 步数据时,需要扫描所有文件后进行比对,进行差...
rsync-3.0.8源代码 Rsync version 3.0.8 released March 26th, 2011 Rsync version 3.0.8 has been released. This is a bug-fix release.
rsync是用于
用于一键部署rsync服务端环境,自动生成rsyncd.conf配置文件和密码文件,配置开机自动运行。只需在客户端配置下密码 ,就可以进行rsync同步