备份需要永远.在我们可以信任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.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。