📜  备份和快照的区别

📅  最后修改于: 2021-09-09 10:38:54             🧑  作者: Mango

1.备份:
备份通常会建议您的数据重复。启动备份时,它会生成您的文件副本,包括与您的网站和邮箱相关的文件。这些副本通常保存在与原始内容不同的位置,因此非常适合灾难恢复。备份是一种可能需要几分钟、几小时或几天才能完成的机制,具体取决于数据。这表明备份结束时的数据可能与备份启动时的数据不兼容。备份计划存储很长时间,如果它们存储在服务器之外,它们可用于在服务器故障后恢复服务器。

2. 快照:
快照是指在特定时间段内您的服务器文件系统的即时“图片”。这张图片包含整个文件系统,就像拍摄快照时一样。当快照习惯于恢复服务器时,服务器将恢复到快照时的状态。快照专为短期存储而设计。当空间耗尽时,新快照最终会覆盖旧快照。出于这个原因,快照通常只有在您想恢复到服务器的最新版本时才有用。

备份和快照的区别:

S.NO. Backup Snapshot
1. Backup can be stored in another location, same server, or even the same drive in this case. Snapshots can be stored only in the same location where original data is present.
2. Backup may have differences based on when the backup started and ended. Snapshot is a “picture” of your server at present period of time.
3. It is a long term process and might take a lot of time to complete the procedure. It is a short term process and takes very less time, as compared to backup, to complete the procedure.
4. Backup comprises of only file system. Snapshots comprises of different types of systems like the files, software, and settings of that type.
5. Backup takes long time to copy data. Snapshot takes very less time to copy the data.
6. Incase of SQL server, backup is a paid service. A person can use this service to automatically backup most recent data every night. Incase of SQL server, snapshot is a free feature that is used to manually create duplicate images of the servers. One can easily generate them at any time.
7. Backup is not a backup unless the data exists in several distinct locations. Backups should be easily and quickly restored. Backups should be verifiable. Snapshot by itself is not a backup. But it can be used as an essential part of the backup process. Snapshot is used as a part of the data movement process to a backup file. It is removed when the backup job is completed.