使用rsync做我们的数据库的每日备份,但我不想每天都镜像原来的,只是下载已经改变的文件。
这几乎是在那里,但是当目录中有一个匹配时,它会复制一切。 最终idfind它在最后一天编辑的文件(-mtime -1)
rsync -aP -p -o -g --progress `find /Volumes/MP_JUBBLER/testing/src/ -mmin -4` /Volumes/MP_JUBBLER/testing/backups/current/
这只是一个testing,通常我们login到我们的远程托pipe服务器,所以认为这将工作,但也是一个类似的问题。 只要有一个匹配,它下载一切;
rsync -aP -p -o -g --progress -e 'ssh -p 2020' [email protected]:'`find /var/lib/mysql -mmin -10`' /Volumes/MP_JUBBLER/testing/backups/current/
有谁知道我可以做到这一点? 任何指针赞赏!
担。
你需要改变你的发现看文件。
find /Volumes/MP_JUBBLER/testing/src/ -mmin -4 -type f