Difference between revisions of "Partclone"

From ArchWiki
Jump to: navigation, search
m (Installation: package no longer in AUR)
(Installation: some other partclone "versions" are available in the AUR)
Line 4: Line 4:
 
==Installation==
 
==Installation==
  
Partclone is available in the [[AUR]] as {{Package AUR|partclone}}.
+
Partclone is available in the [[AUR]] as {{AUR|partclone}}, {{AUR|partclone-git}} and {{AUR|partclone-testing}}.
  
 
==Using Partclone with an ext4-formatted partition==
 
==Using Partclone with an ext4-formatted partition==

Revision as of 15:44, 25 January 2012

Partclone, like the well-known Partimage, can be used to back up and restore a partition while considering only used blocks. In Arch Linux, Partclone can deal with the following file systems: ext2, ext3, ext4, reiserfs, hfs+, fat and ntfs.

Installation

Partclone is available in the AUR as partcloneAUR, partclone-gitAUR and partclone-testingAUR.

Using Partclone with an ext4-formatted partition

Without compression

To backup without compression:

$ partclone.ext4 -c -s /dev/sda1 -o ~/image_sda1.pcl

To restore it:

$ partclone.ext4 -r -s ~/image_sda1.pcl -o /dev/sda1

With compression

To backup with compression:

$ partclone.ext4 -c -s /dev/sda1 | gzip -c > ~/image_sda1.pcl.gz
Note: For maximum compression use "gzip -c9"

To restore it:

zcat ~/image_sda1.pcl.gz | partclone.ext4 -r -o /dev/sda1