#保存退出#chmod+x/home/crontab/yum_rsync.sh#添加脚本执行权限备注:运行此脚本前,先要创建好同步目录及不需要同步的目录列表文件#cd/usr/local/Nginx/html/#进入目录#touchexclude_centos.list#创建文件#touchexclude_repoforge.list#创建文件#touchexclude_epel.list#创建文件把不需要同步的目录写到上面对应的文件中,每行一个目录,例如:#viexclude_epel.list#4/#