Amazon EBS Snapshot 如何确定修改的文件?

发布于 2024-11-02 04:19:09 字数 255 浏览 1 评论 0原文

通常,同步应用程序根据文件大小更改和修改日期来检测文件修改。这对于 Amazon EBS 快照进程是否适用?

最近,我注意到一个固定大小的文件被排除在快照之外,即使该文件在一段时间内被修改了多次。当最新的快照(实际上是第一个快照之后创建的任何快照)加载到新实例时,只有初始内容可以位于文件中。甚至文件的修改日期也被设置为初始日期。

这让我想知道 Amazon EBS Snapshot 如何确定修改的文件。我可以更改任何配置以确保固定大小的文件正确添加到快照中吗?

Typically, a sync application detects file modifications based on file size changes and modified dates. Does this hold true for Amazon EBS Snapshot processes?

Recently I noticed a fixed sized file was excluded from a snapshot even though the file was modified numerous times over a period. When the most recent snapshot (in fact, any snapshots created after the first one) was loaded into a new instance, only the initial content could be located within the file. Even the modified date on the file was set to the initial date.

This made me wonder how Amazon EBS Snapshot determines modified files. Are there any configurations I can change to ensure fixed sized files are added to snapshots correctly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

对不⑦ 2024-11-09 04:19:09

是的,但它是在块级别上执行的。也就是说,它检测更改的低级块而不是文件。

Yes, But it does so on a block level. That is, it detects changed low-level blocks rather than files.

雪落纷纷 2024-11-09 04:19:09

EBS 确实使用块级差异来确定要存储的内容(如 @Dmitry 所说)。但是,EBS 还会保留所有以前存在的快照,以便将文件系统的状态完全重新创建为拍摄快照时的状态。

如果您的快照显示给定文件的旧状态,那么您肯定正在查看旧快照。

Amazon EBS 快照是增量备份,这意味着只会保存自上次快照以来设备上发生更改的块。如果您的设备有 100 GB 数据,但自上次快照以来仅更改了 5 GB 数据,则仅额外 5 GB 快照数据将存储回 Amazon S3。尽管快照是增量保存的,但当您删除快照时,只会删除任何其他快照不需要的数据。因此,无论删除了哪些先前的快照,所有活动快照都将包含恢复卷所需的所有信息。

http://aws.amazon.com/ebs/

EBS does use block level diffs to determine what to store (as @Dmitry says). However, EBS also keeps all previously existing snapshots that are needed to fully re-create the state of the file system in the state it was in when the snapshot was taken.

If your snapshot shows an old state of a given file, you certainly are looking at an old snapshot.

Amazon EBS snapshots are incremental backups, meaning that only the blocks on the device that have changed since your last snapshot will be saved. If you have a device with 100 GBs of data, but only 5 GBs of data has changed since your last snapshot, only the 5 additional GBs of snapshot data will be stored back to Amazon S3. Even though the snapshots are saved incrementally, when you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will contain all the information needed to restore the volume.

http://aws.amazon.com/ebs/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文