partimage - Clone and Restore a Partition - Linux TUI CLI


Author: gotbletu
1808 View
17m 30s Lenght
40 Rating


#list all mounted device lsblk # start text user interface sudo partimage # save/ clone a partition sudo partimage -b -z0 -o -d save /dev/sdX1 /path/to/gotbletu.partimage # restore a partition using existing image sudo partimage -b restore /dev/sdX1 /path/to/gotbletu.partimage.000 ------------------- http://www.partimage.org/ Partimage is opensource disk backup software. It saves partitions having a supported filesystem on a sector basis to an image file. Although it runs under Linux, Windows and most Linux filesystems are supported. The image file can be compressed to save disk space and transfer time and can be split into multiple files to be copied to CDs or DVDs. Partitions can be saved across the network using the partimage network support, or using Samba / NFS (Network File Systems). This provides the ability to perform an hard disk partition recovery after a disk crash. Partimage can be run as part of your normal system or as a stand-alone from the live SystemRescueCd. This is helpful when the operating system cannot be started. SystemRescueCd comes with most of the data recovery software for linux that you may need . Partimage will only copy data from the used portions of the partition. (This is why it only works for supported filesystem). For speed and efficiency, free blocks are not written to the image file. This is unlike other commands, which also copy unused blocks. Since the partition is processed on a sequential sector basis disk transfer time is maximized and seek time is minimized ,Partimage also works for very full partitions. For example, a full 1 GB partition may be compressed down to 400MB.


Comments

  1. I use Clonezilla. I've noticed that after going through all the menus and just before it begins the imaging process, it shows me a command line version of all the options I have just selected in the menus. So I think it must have a CLI. (But I could be wrong since I've never tried using Clonezilla via CLI.)
  2. Partimage does not support ext4 or btrfs filesystems
  3. as always.. great quality content! THANKS DUDE!!! - i would love to see you showing off "TimeShift" . another great system rollback and restore tool ANYBODY should have and use.
  4. Another great vid. Keep it up. Love 'em all.
  5. Once again, nice tool and video! At the moment I'm looking for a good tool (CLI or GUI, doesn't really matter) for backing up data (especially mp3 and mkv) with good compression ratio, to save some disk space. Any suggestions?
  6. Hi l saw your vídeo on TV P2P, l am Brazilian l live in Brazil, l love Japanese culture, andalready utilized,KeyHole tv, niji show, and sites to see the tv japan, over all thse are the KeyHole tv still Works, forthe sites to function and niji show as well.MY QUESTION TO ANY WAY USE OF WAY P2P JAPAN TO SEE IF YES PLEASE DO THE TV IN A SHOWING HOW MUCH YOU WOULD HELP ME, THANK YOU .
  7. This is almost like a clonezilla.
  8. an alternative for ext4 is partclone
  9. +gotbletu Nice tool. As you said it's a pity it doesn't support ext4.
    I don't think you got the "split" concept quite right. Split enables the output file to be cut up to fit your storage when you don't have space to store the image file on a single partition.
    Here are some use cases for an 80GB partition:
    - Available space is 50GB on one partition and 40GB on another. Using the autosplit feature I could tell partimage to use all the available space on the 50GB partition then autosplit the file and put the remainder on the 40GB partition. The resulting files would be call mydiskimage.000 mydiskimage.001 Note the change in the number of the file extension.
    - I want to send the 80GB disk image to a remote server. If I make a single 80GB image and there is a network error when I'm sending it to the server I would need to resend the whole 80GB image file. If I use the fixed size split feature set to 10GB then I can make 8 X 10GB image files. mydiskimage.000, mydiskimage.001, mydiskimage.002 ..... mydiskimage.008. Now I can just resend a single 10GB file rather than the whole 80GB again.
    Love your vids. Keep the great content coming.
  10. why not just use dd and write down the UUID/part-uuid and offset in a txt file? pipe to gzip for compression.