Files
nexus/wiki/concepts/磁盘镜像备份.md

39 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "磁盘镜像备份"
type: concept
tags: [backup, disk-imaging, clonezilla, disaster-recovery]
---
## Definition
磁盘镜像备份Disk Imaging Backup指将整个磁盘的所有扇区内容打包为单个镜像文件.img的备份方式支持完整还原到任意相同或更大容量磁盘。
## How It Works
1. **扇区级复制**:读取磁盘每个扇区,包括引导扇区、分区表、文件系统元数据和所有数据
2. **压缩存储**:镜像文件通常压缩(如 Clonezilla -z1p 高压缩率)以节省存储空间
3. **差异备份**(部分工具支持):仅备份自上次全量备份后的变更扇区
## Tools
- **Clonezilla**:开源方案,支持 NFS/SMB/USB 多种存储后端
- **Acronis True Image**:商业方案,支持增量镜像
- **Macrium Reflect**Windows 平台商业方案
- **dd**Linux 原生命令行工具,无压缩无差异
## vs rsync增量备份
| 维度 | 磁盘镜像备份 | rsync增量备份 |
|------|------------|-------------|
| 范围 | 整个磁盘/分区 | 单个目录/文件系统 |
| 粒度 | 扇区级 | 文件级 |
| 备份速度 | 慢(全盘复制) | 快(仅差异) |
| 恢复速度 | 快(直接还原) | 慢(逐文件恢复) |
| 场景 | 灾难恢复、系统迁移 | 日常增量备份 |
## Related Concepts
- [[灾难恢复]]:磁盘镜像备份的核心应用场景
- [[Clonezilla]]:磁盘镜像备份的开源工具
- [[rsync增量备份]]:互补的增量备份方案
## Aliases
- Disk Imaging
- 全盘镜像
- Ghost 备份