> For the complete documentation index, see [llms.txt](https://huataihuang.gitbook.io/cloud-atlas-draft/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://huataihuang.gitbook.io/cloud-atlas-draft/os/linux/backup/full_system_backup_with_tar.md).

# 使用tar备份完整Linux操作系统

可以使用`tar`命令备份整个Linux操作系统

```bash
tar -cvpzf backup.tar.gz --exclude=/backup.tar.gz --one-file-system /
```

## 参考

* [BackupYourSystem/TAR](https://help.ubuntu.com/community/BackupYourSystem/TAR)
* [Full System Backup with tar](https://wiki.archlinux.org/index.php/Full_System_Backup_with_tar)
