Backup:
- cd /
- sudo tar -cvpzf /media/xxx/backup.tar.gz --exclude=/cdrom --exclude=/home --exclude=/lost+found --exclude=/media --exclude=/mnt --exclude=/proc --exclude=/tmp --exclude=/sys /
Restore:
- cd /
- sudo tar -zxvfp /media/xxx/backup.tar.gz -C /
Suppose you mount the '/home' directory to a big part of the hard-drive, and don't format that area when re-install ubuntu(just mount '/home' there again)
本文介绍了如何使用tar命令在Ubuntu系统中进行系统级备份及还原操作。特别关注于排除不必要的目录,如临时文件等,并提供了将/home目录挂载到新硬盘的方法而不重新格式化。
1981

被折叠的 条评论
为什么被折叠?



