1 Star 0 Fork 15

shushu / empush

forked from python-worker / empush 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

说明:

本文档适用于python3目录下的工程,python2的脚本不不适用。

python2目录工程适用于centos6/pyhton2.7版本

依赖安装:yum install file rsync , pip install pyinotify

简介:

  • 监控指定的目录,目录内有修改操作就执行同步操作,同步到指定服务器的指定目录中。
  • 监控项可修改可修改添加,默认只监控修改。
  • 可配置监控目录、远程ip、端口、同步的目标地址。
  • 默认日志打印info级别,日志路径可配置
  • 所有配置文件在settings.py中

环境:

开发语言:python3.6

开发环境:centos6

开发依赖:

pip install pyinotify
yum install file rsync

启动:

python dir-real-rsync.py

关闭:

  • kill掉pid号即可:
  • cat /tmp/pyinotify.pid|xargs kill && rm -f /tmp/pyinotify.pid
The MIT License (MIT) Copyright (c) 2017 python-worker Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

easy-monit-push 简单的监控目录 有更新后同步到远程服务器上。 同步命令基于rsync 同步监控基于pynotify 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/shuyue/empush.git
git@gitee.com:shuyue/empush.git
shuyue
empush
empush
master

搜索帮助