一前戏#检测rsync是否已安装rpm-qarsync#如未按装,执行yum安装yuminstall-yrsync#新建用户和目录并授权useradd-M-s/sbin/nologinrsyncmkdir/bakcupchown-Rrsync.rsync/bakcup/二服务端配置#打开配置文件,填入以下内容vi/etc/rsyncd.conf===================================#..
分类:
其他好文 时间:
2017-03-11 22:09:50
阅读次数:
234
[root@inotify-masterinotify-tools-3.14]#cd/usr/local/inotify-3.14/[root@inotify-masterinotify-3.14]#./bin/inotifywait--help-r|--recursiveWatchdirectoriesrecursively.#递归查询目录-q|--quietPrintless(onlyprintevents).#打印监控事件的信息-m|--monitorKeeplisteni..
分类:
其他好文 时间:
2017-03-11 22:07:13
阅读次数:
1357
配置过程中遇到的错误与查看日志 以下错误是在服务正常开启的情况下发生的,请先查看服务是否正常启动。 一、错误 1. rsync: failed to set times on "." (in backup): Permission denied (13) 更新.文件的时间失败:原因是权限不够。 此处 ...
分类:
其他好文 时间:
2017-03-09 13:20:13
阅读次数:
508
接收端配置: 1.安装rsync 2.配置同步模块 1. 编辑同步配置文件 2. 同步模块配置参数 3. 创建同步文件夹 4. 启动同步服务 5. 设置开机启动 ****** ...
分类:
其他好文 时间:
2017-03-09 13:14:26
阅读次数:
120
tar fxzsersync2.5.4_64bit_binary_stable_final.tar.gz -C /usr/local/ mv GNU-Linux-x86 sersync cp sersync/confxml.xmlsersync/confxml.xml.$(date +%F) 修改配 ...
分类:
其他好文 时间:
2017-03-08 22:21:19
阅读次数:
166
rsync:备份服务和scp差不多但是不同的是rsync是增量备份而scp是全量备份,更加节省磁盘。(备份服务器(数据库文件,全网重要文件))好处:增量备份缺点:大文件传输存在瓶颈---------------------------------------------------------------------------------------------..
分类:
其他好文 时间:
2017-03-08 16:47:54
阅读次数:
377
先安装inotify-tools#!/bin/sh
dir=/opt/pup/archive/
/usr/bin/inotifywait-mrq--format‘%f‘-ecreate${dir}|whilereadf
do
if["${f##*.}"x="png"x];then
#echouploadfile:${f}
/usr/bin/ncftpput-ua-pa10.151.84.139.${dir}${f}
fi
done扩展:inotifywait语法:inotifyw..
分类:
系统相关 时间:
2017-03-07 23:21:03
阅读次数:
201
一、安装 1) 从内核和目录里面查看是否支持inotify [root@nfs01 ~]# uname -r 2.6.32-573.el6.x86_64 [root@nfs01 ~]# ls -l /proc/sys/fs/inotify/ -→主要查看下面有没有三个目录 总用量 0 -rw-r-- ...
分类:
其他好文 时间:
2017-02-19 10:42:34
阅读次数:
210