首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 系统运维 >

本机rsync同步脚本,未开启压缩效能

2012-11-05 
本机rsync同步脚本,未开启压缩功能。#!/bin/bash#to quick back the files!#xtao 2012.10.8 v0.1if [ $# -n

本机rsync同步脚本,未开启压缩功能。

#!/bin/bash
#to quick back the files!
#xtao 2012.10.8 v0.1


if [ $# -ne 2 ];then
 echo "Usage: $0 <source dir> <remote dir>  "
 echo "See logs in the dir which submited the command!"
 echo "e.g., $0 /root/ /tmp/back/, to backup dir "root"  to "/tmp/back/""
 exit -1
fi
 echo "See logs in the dir which submited the command!"
 nohup rsync -vrtopgu $1 $2 >&rsync.LOG &

热点排行