Difference between revisions of "Clonezilla"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 19: Line 19:
 
# Create a custom script based on https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs example and modified it to make an unattended restore.
 
# Create a custom script based on https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs example and modified it to make an unattended restore.
 
# Read unattended mode documentation: https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc, for live USB modify: <code>syslinux/syslinux.cfg</code>
 
# Read unattended mode documentation: https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc, for live USB modify: <code>syslinux/syslinux.cfg</code>
# Read <code>ocs-sr</code> command line examples https://clonezilla.org/advanced/reserved-word-ocs-sr.php and code https://github.com/stevenshiau/clonezilla/blob/master/sbin/ocs-sr
+
# Read <code>[[ocs-sr]]</code> command line examples https://clonezilla.org/advanced/reserved-word-ocs-sr.php and code https://github.com/stevenshiau/clonezilla/blob/master/sbin/ocs-sr
 
[[Category:Backup]]
 
[[Category:Backup]]
 
  
 
== See also ==
 
== See also ==
 
* [[Linux server administration/Backup and Restore]]
 
* [[Linux server administration/Backup and Restore]]
 
* [[virt-p2v-make-disk]]
 
* [[virt-p2v-make-disk]]

Revision as of 08:23, 4 October 2020

Clonezilla is a free disk cloning, disk imaging, data recovery, and deployment computer program written in perl and bash and use partclone software to save and restore used blocks on a partition.

Clonezilla Live

Clonezilla live offers an interactive interface for restoring and backup or you can just execute commands with appropriate parameters. Some binaries are:

  • ocs-sr or ocs-sr -x for interactive mode
/usr/sbin/ocs-sr -g auto -e1 auto e2 -r -j2 -c -scr -p choose restoredisk RESTORE_SOURCE_OMG DEVICE
/usr/sbin/ocs-sr -g auto -e1 auto e2 -r -j2 -c -scr -p choose restoredisk 2019-09-10-14-img nvme0n1
-g == --grub-install
-e1 == --change-geometry NTFS-BOOT-PARTITION
-e2 == --load-geometry-from-edd
-r == --resize partition
-scr == ---skip-check-restorable
-p == --postaction (default reboot)
  • ocs-live

Activities

  1. /Create an image of your systems using Clonezilla-liveCD on an external USB disk and restore it to a new systems/
  2. Create a custom script based on https://github.com/stevenshiau/clonezilla/blob/master/samples/custom-ocs example and modified it to make an unattended restore.
  3. Read unattended mode documentation: https://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc, for live USB modify: syslinux/syslinux.cfg
  4. Read ocs-sr command line examples https://clonezilla.org/advanced/reserved-word-ocs-sr.php and code https://github.com/stevenshiau/clonezilla/blob/master/sbin/ocs-sr

See also

Advertising: