当前位置: 首页 > 工具软件 > Ucloner > 使用案例 >

使用UCloner-10.10.1脚本克隆备份恢复ubuntu系统

寿毅庵
2023-12-01
UCloner主页:
----------------
http://code.google.com/p/ucloner/

$ sudo apt-get install squashfs-tools


clone
---------------
sudo  ./ucloner_cmd.py  mode=clone  lang=cn   /=/dev/sda2  /_fs=ext4   /home=/dev/sda3  /home_fs=reiserfs   /boot=/dev/sda4  /boot_fs=reiserfs   /usr/local=/dev/sda5  /usr/local_fs=ext4   /usr=/dev/sda6  /usr_fs=xfs    /var=/dev/sda7  /var_fs=jfs   grubdev=/dev/sda   swap=/dev/sda8   exclude=/home/pt/movies  exclude=/home/pt/music


sudo  ./ucloner_cmd.py  mode=clone  lang=cn   /=/dev/sdb1  /_fs=ext4   grubdev=/dev/sdb



backup
-----------
sudo  ./ucloner_cmd.py  mode=backup  lang=cn   backup_to=/media/1204.squashfs   exclude=/home/pt/movies  exclude=/home/pt/music

sudo  ./ucloner_cmd.py  mode=backup  lang=cn   backup_to=/media/ubuntu-1204.squashfs  


restore
-------------
sudo  ./ucloner_cmd.py  mode=restore  lang=cn   restore_from=/media/disk-1/ubuntu-10.04.squashfs   /=/dev/sda2  /_fs=ext4   /home=/dev/sda3  /home_fs=reiserfs   /boot=/dev/sda4  /boot_fs=reiserfs   /usr/local=/dev/sda5  /usr/local_fs=ext4   /usr=/dev/sda6  /usr_fs=xfs    /var=/dev/sda7  /var_fs=jfs   grubdev=/dev/sda   swap=/dev/sda8 

sudo  ./ucloner_cmd.py  mode=restore  lang=cn   restore_from=/media/ubuntu-12.04.squashfs   /=/dev/sdb1  /_fs=ext4  grubdev=/dev/sdb 

 类似资料: