clonezilla 2.6.1 備份還原一鍵搞定


,

折騰了兩天,終於找到方法。系統一直更新,指令也跟著更新,所以,舊版本的指令無法使用。

以內建的指令區塊(TO RAM 可除隨身碟版本)進行改造。

All the programs will be copied to RAM, so you can

  remove boot media (CD or USB flash drive) later

將所要執行的程式,放置在區塊最後 ,以便順利執行所有的背景設定後,在開啟所設定的活動。

※標準還原sda1指令

ocs-sr -e1 auto -e2 -b -t -r -j2 -k -p poweroff -f sda1 restoreparts cc2_w7p1 sda1

http://allthatnetwork.blogspot.com/2012/10/clonezilla-ocs-sr-options.html

-----------------------------

#雲端備份C碟(sda1)到SMB網路芳鄰
#改為saveparts ask_user可自取檔名

label  C  to  Lan  (To RAM)
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL  C  to  Lan (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs -o user=admin,password=600  //192.168.153.101/svbk /home/partimag" ocs_live_run="ocs-sr -q2 -b -j2 -z2p -i 2000 -sfsck -scs -senc -p poweroff saveparts w7p1-img sda1"
  ENDTEXT

#-------------------------

#雲端備份Disk(sda)到SMB網路芳鄰

label  Disk   to  Lan  (To RAM)
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL  Disk   to  Lan (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs -o user=admin,password=600  //192.168.153.101/svbk /home/partimag" ocs_live_run="ocs-sr -q2 -b -j2 -z2p -i 2000 -sfsck -scs -senc -p poweroff savedisk win7-img sda"
  ENDTEXT

#-------------------------

#本機備份C碟(sda1)到同硬碟D碟(sda2)

 label C  to  D (To RAM)
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL C  to  D (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun1="sleep 2" ocs_prerun2="ntfs-3g /dev/sdb2 /home/partimag" ocs_live_run="ocs-sr -q2 -b -j2 -rm-win-swap-hib -z1p -i 2000 -sc -p poweroff saveparts w7p1-img sda1"
  ENDTEXT

#-------------------------

#隨身碟復原C碟(sda1)

label  Restore  C  From  USB
  # MENU DEFAULT
  # MENU HIDE
MENU LABEL Restore  C  From  USB
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=
zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 ocs_prerun="mount /dev/sdb1 /mnt" ocs_prerun1="mount --bind /mnt/back /home/partimag" ocs_live_run="ocs-sr -e1 auto -e2 -b -t -r -j2 -k -p poweroff -f sda1 restoreparts cc2_w7p1 sda1"
 
ENDTEXT

#-------------------------

#雲端還原C碟(sda1)從SMB網路芳鄰

label  C  From  Lan  (To RAM)
  # MENU DEFAULT
  # MENU HIDE
MENU LABEL  C  From  Lan  (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=
zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs -o user=admin,password=600  //192.168.153.101/svbk /home/partimag" ocs_live_run="ocs-sr -e1 auto -e2 -b -t -r -j2 -k -p poweroff -f sda1 restoreparts cc2_w7p1 sda1"
 
ENDTEXT

 

#-------------------------

#雲端還原Disk(sda)從SMB網路芳鄰

label  Disk  From  Lan  (To RAM)
  # MENU DEFAULT
  # MENU HIDE
MENU LABEL  Disk  From  Lan (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun="dhclient -v eth0" ocs_prerun1="sleep 5" ocs_prerun2="mount -t cifs -o user=admin,password=600  //192.168.153.101/svbk /home/partimag" ocs_live_run="ocs-sr -e1 auto -e2 -b -t -r -j2 -k -p poweroff -f sda restoredisk win7 sda"
  ENDTEXT

 #-------------------------

#本機還原C碟(sda1)從同硬碟D碟(sda2)

 label C  From  D (To RAM)
  # MENU DEFAULT
  # MENU HIDE
MENU LABEL C  From  D (To RAM)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1  ocs_prerun1="sleep 2"  ocs_prerun2="ntfs-3g /dev/sda2 /home/partimag" ocs_live_run="ocs-sr -e1 auto -e2 -b -t -r -j2 -k -p poweroff -f sda1 restoreparts w7p1 sda1"
  ENDTEXT

#-------------------------

#本機備份C碟(sda1)到第2硬碟1區(sdb1)

label  C to D SYSimg (Disk2 P1)
  # MENU DEFAULT
  # MENU HIDE
  MENU LABEL C to D SYSimg (Disk2 P1)
  # MENU PASSWD
  kernel /live/vmlinuz
  append initrd=/live/initrd.img boot=live union=overlay username=user config components quiet noswap edd=on nomodeset noeject locales=zh_TW.UTF-8 keyboard-layouts=NONE  ocs_live_extra_param="" ocs_live_batch="yes" vga=788 toram=live,syslinux ip= net.ifnames=0  splash i915.blacklist=yes radeonhd.blacklist=yes nouveau.blacklist=yes vmwgfx.enable_fbdev=1 
  ocs_prerun1="sleep 2" ocs_prerun2="ntfs-3g /dev/sdb1 /home/partimag" ocs_live_run="ocs-sr -q2 -b -j2 -rm-win-swap-hib -z1p -i 2000 -sc -p poweroff saveparts SYSimg-now sda1"
  ENDTEXT