使用 Git 或 Mercurial 将本地目录同步到 S3/SDB
我正在寻找 Python 的解决方案,因为这是我选择的编程语言。这是我的问题:
我正在尝试将客户端计算机上的目录同步到 S3/SDB。可能有 20k-30k 个 pdf 文件,总大小在 6 到 10GB 之间。
我正在考虑使用 SQL lite 这样的本地数据库来跟踪客户端计算机上的文件,以便我可以找出自上次加载以来进行了哪些更改。
然而,已经有一些非常棒的程序可以完成此类工作,即 Hg 和 Git。
有人有使用 Git 或 Hg 来监视本地文件系统中的更改的经验吗?
作为一个额外的复杂性,我只能只读访问我需要上传的目录,因此我需要某种方法来监视我实际上无法放入“.hg”或“.git”文件夹的目录。
I am looking for a solution in Python, since that is my programming language of choice. Here's my problem:
I am trying to sync a directory on a client's machine to S3/SDB. It is maybe 20k-30k pdf files that total between 6 and 10GB.
I was thinking about using a local database like SQL lite to keep track of files on the client machine, so that I could figure out what changes had been made since the last load.
However, there are already some really awesome programs that do that kind of work, namely Hg and Git.
Does anybody have any experience using a Git or Hg to watch for changes in a local filesystem?
As an added complication, I only have readonly access to this directory I need to upload, so I need some kind of way to monitor a directory that I can't actually put a ".hg" or ".git" folder in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论