#!/bin/sh#filename:rsync_start.sh#date:2015-12-14#作者:linuxzkq#version:v1.0#chkconfig:23452365#description:Startrsyncandstoprsyncscripts.prog="rsync"pidfile=/var/run/rsyncd.pidexec=/usr/bin/rsync./etc/init.d/functions[-f/usr/bin/rsync]||echo"pleaseinstall..
分类:
其他好文 时间:
2015-12-26 23:42:55
阅读次数:
185
rsyncUsage: /etc/init.d/rsync {start|stop|reload|force-reload|restart|status}rsync默认配置文件# defaults file for rsync daemon mode# start rsync in daemon m...
分类:
系统相关 时间:
2015-12-25 01:04:03
阅读次数:
238
Linux文件同步:主要使用rsync与crontab结合的方式同步主机IP:172.22.3.181备机IP:172.22.3.182配置操作步骤:一.安装rsync二.配置rsyncd.conf与密码文件(两个步骤1和2)三.备份脚本一.安装rsync备机1.服务器是否安装rsyncShell代码rpm-qa|grep–irsync若有显示,说明已?.
分类:
系统相关 时间:
2015-12-24 16:38:41
阅读次数:
335
推荐:Rsync结合Inotify 实时同步配置rsync+inotify实现实时同步案例rsync+inotify实现多台服务器之间数据实时同步Linux下Rsync+Inotify-tools实现数据实时同步
分类:
其他好文 时间:
2015-12-24 00:28:39
阅读次数:
151
很常见的情况:我想同步/myweb下的 一些php文件 , 但是不想复制/myweb/log/里边的一些日志文件,因为这些文件太大了,备份也是没有意义的。 现在如果想避开某个路径 直接添加—exclude 即可 比如—exclude “./log” –exclude ‘./log/file’Note...
分类:
其他好文 时间:
2015-12-23 15:56:20
阅读次数:
154
环境服务端:192.168.88.31 Windows2008R2客户端:192.168.88.32 Windows2008R2把服务文件夹 c:/rsync 里面的内容同步到客户端c:/rsync一、服务端配置①在服务端安装cwRsyncServer_4.1.0_Installer.exe这一.....
分类:
其他好文 时间:
2015-12-20 23:56:08
阅读次数:
307
双向实时数据同步部署首先添加服务器ssh信任,即免秘钥登陆Web1:192.168.10.36Web2:192.168.10.37分别在web1和web2上执行以下命令mkdir ~/.sshchmod 700 ~/.ssh生成RSA密钥ssh-keygen -t rsa(然后连续三次回车)添加密钥...
分类:
其他好文 时间:
2015-12-20 13:14:50
阅读次数:
293
Linux/Unix 是真正的多用户,多任务。Linux 提供了 fg 和bg 命令,让你轻松调度正在运行的任务。假设你发现前台运行的一个程序需要很长的时间,但是需要干其他的事情,你就可以用 Ctrl-Z ,挂起这个程序,然后可以看到系统提示:[1]+ Stopped /root/bin/rsync...
分类:
其他好文 时间:
2015-12-18 18:24:31
阅读次数:
424
21: ftp用于数据传输控制22: ssh23: telnet25: smtp 用于邮件发送3306:mysql数据库873: rsync同步工具161:snmp(简单网络管理协议,通过它可以管理网络设备等,这个在配置nagios/cacti监控时会用到)111: RPC端口(也是nfs服务的po...
分类:
其他好文 时间:
2015-12-16 18:47:40
阅读次数:
116
#!/bin/sh#filename:rsync_start.sh#date:2015-12-14#作者:linuxzkq#version:v1.0#chkconfig:23452365#description:Startrsyncandstoprsyncscripts.prog="rsync"pidfile=/var/run/rsyncd.pidexec=/usr/bin/rsync./etc/init.d/functions[-f/usr/bin/rsync]||echo"pleaseinstall..
分类:
其他好文 时间:
2015-12-16 09:42:04
阅读次数:
222