加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

是否有一个使用inotify的Linux备份解决方案?

发布时间:2020-12-13 18:33:18 所属栏目:Linux 来源:网络整理
导读:备份需要永远.在我们可以信任btrfs或ZFS来备份增量快照之前,如果有一个使用inotify的守护进程来跟踪哪些文件实际已经发生了变化以便备份运行得更快,那会不会很好?这个节目在哪里? 如何备份我的Linux机箱而不必每次都抓取整个文件系统?我想要一个程序来检
备份需要永远.在我们可以信任btrfs或ZFS来备份增量快照之前,如果有一个使用inotify的守护进程来跟踪哪些文件实际已经发生了变化以便备份运行得更快,那会不会很好?这个节目在哪里?

如何备份我的Linux机箱而不必每次都抓取整个文件系统?我想要一个程序来检测新的或更改的照片,源代码等,并将它们排队以复制到我的NAS.

解决方法

我用“yum search inotify”回答了我自己的问题.它被称为 lsyncd,它托管在谷歌代码上.

不幸的是,它看起来总是首先运行完整的rsync,所以如果我的计算机一次打开超过14个小时,它仍然无法帮助我.

Lsyncd uses rsync to synchronize local directories with a remote machine running rsyncd. Lsyncd watches multiple directories trees through inotify. The first step after adding the watches is to rsync all directories with the remote host,and then sync single file by collecting the inotify events. So lsyncd is a light-weight live mirror solution that should be easy to install and use while blending well with your system. See lsyncd –help for detailed command line options.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读