shell同步目录
2015-07-07 15:04
696 查看
n1上更新了/opt/spark目录下面的内容,同步到n2,n3,n4上去
同步目录
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n2:/opt
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n3:/opt
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n4:/opt
同步目录
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n2:/opt
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n3:/opt
rsync -varcl --exclude=logs /opt/spark /opt/spark-1.4.0-bin-cdh5.3.0 root@n4:/opt
相关文章推荐
- linux c编程中调用 shell 命令
- Linux远程管理器xshell和xftp使用教程
- shell基础学习-难点重点学习
- ShellExecute使用详解
- WinCE自启动Shell的问题
- FTP自动化上传的Shell脚本
- cygwin :bash: $'…
- 35、Linux中shell数据重定向(输入重定向与输出重定向)
- 【转】linux shell 正则表达式(BREs,EREs,PREs)差异比较
- shell相关指令介绍$*和$#以及$?和if [[ ! -z $1 ]]
- Linux常用命令(vim+bash+hadoop)
- 提高 Vim 和 Shell 效率的 9 个建议
- linux shell 不同进制数据转换(二进制,八进制,十六进制,base64) (转)
- Shell之date用法
- 几个有用的Shell,解析json,解析URL
- ubuntu shell脚本开机自动运行的方法
- shell排序
- Linux学习笔记 (八)Shell概述
- SSH Secure Shell显示服务器Tomcat后台内容
- 一个Hashell模块