remastersys 是一个能够备份你的ubuntu系统的工具。
源码在github上能找到:Remastersys Source
另外系统是 Ubuntu14.04/12.04 也可以直接 apt 安装:
sudo add-apt-repository ppa:mutse-young/remastersys
sudo apt-get update
sudo apt-get install remastersys remastersys-gtk
注:remastersys 是命令行程序 remastersys 是图形界面, 两者都可以使用。(不过我实际使用的时候,remastersys-gtk 图形界面没有起来,最后使用的是命令行程序。)
安装成功之后, 就可以使用remastersys备份你的系统了。注意:最好在备份之前将你的系统中的不需要备份的文件去掉, 并且留下足够的磁盘空间,否则有可能会由于备份的镜像文件太大而失败。
使用方法很简单, 执行命令:
sudo remastersys backup 镜像名称.iso
也可以执行
sudo remastersys -h
查看 resmastersys 帮助, 一目了然:
Usage of remastersys 3.0.3-1 is as follows:
sudo remastersys backup|clean|dist [cdfs|iso] [filename.iso]
Examples:
sudo remastersys backup (to make a livecd/dvd backup of your system)
sudo remastersys backup custom.iso
(to make a livecd/dvd backup and call the iso custom.iso)
sudo remastersys clean (to clean up temporary files of remastersys)
sudo remastersys dist (to make a distributable livecd/dvd of your system)
sudo remastersys dist cdfs
(to make a distributable livecd/dvd filesystem only)
sudo remastersys dist iso custom.iso
(to make a distributable iso named custom.iso but only
if the cdfs is already present)
cdfs and iso options should only be used if you wish to modify something on the
cd before the iso is created. An example of this would be to modify the isolinux
portion of the livecd/dvd
成功之后,镜像文件名称,存放位置,都会有提示。