Rsync+inotify文件传输同步目的:把主服务器192.168.2.132上的文件实时同步到备服务器192.168.2.133上。使用inotify实时监控主服务器/servyou/webroot目录变化,并通过rsync把改变的部分推送给备服务器。主备服务器安装rsync主服务器(数据源)安装inotify1、ssh认证生成密钥对# ssh-keygen -t rsaGenerating
# crontab -e 编辑好之后保存 crontab: installing new crontab cron/tmp.xxx1222: No space left on device crontab: edits left in /tmp/crontab.xxx1222 报错是表示磁盘满了 # df -hl 文件系统 &
一、 系统运行环境 1.1系统版本: Description: Red Hat Enterprise Linux Server release 5.4 (Tikanga) Release: 5.4 x86_64、 1.2 软件版本:
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号