Skip to content

Instantly share code, notes, and snippets.

@asyncins
Created April 14, 2020 09:49
[ubuntu 备份和恢复]

backup:

$ sudo su

$ cd /

$ tar cvpzf backup.tgz –exclude=/proc –exclude=/lost+found –exclude=/backup.tgz –exclude=/mnt –exclude=/sys /

根目录生成的 backup.tgz 就是备份结果

revocer:

可以在运行中的系统恢复

tar xvpfz backup.tgz -C /

命令执行完毕后重启计算机

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment