Difference between revisions of "Partclone"

From ArchWiki
Jump to: navigation, search
(New page: ==Introduction== [http://partclone.nchc.org.tw/ Partclone] provides utilities to back up and restore only the used blocks of a partition. Therefore, Partclone produces smaller image file...)
 
(Now in community)
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
==Introduction==
+
[[Category:File systems]]
 +
[http://partclone.org Partclone], like the well-known [http://www.partimage.org/Main_Page Partimage], can be used to back up and restore a partition while considering only used blocks.
  
[http://partclone.nchc.org.tw/ Partclone] provides utilities to back up and restore only the used blocks of a partition. Therefore,
+
==Installation==
Partclone produces smaller image files then [http://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html dd] does.
+
  
Partclone is available on the [http://aur.archlinux.org/ AUR] (partclone-svn). Due to compiling issues, Partclone currently can be installed on i686 systems only, but can nevertheless back up and restore images from and to 64 bit systems, of course.
+
Partclone is available in the [[community repository]].
  
==Usage==
+
# pacman -S partclone
  
===Without Compression===
+
==Using Partclone with an ext4-formatted partition==
  
back up
+
===Without compression===
<pre>
+
partclone.extfs -c -s /dev/sda1 -o ~/image_sda1.pcl
+
</pre>
+
  
restore
+
To backup ''without'' compression:
<pre>
+
$ partclone.ext4 -c -s /dev/sda1 -o ~/image_sda1.pcl
partclone.extfs -r -s ~/image_sda1.pcl -o /dev/sda1
+
</pre>
+
  
{{Note|Adjust source and target to your needs.}}
+
To restore it:
 +
$ partclone.ext4 -r -s ~/image_sda1.pcl -o /dev/sda1
  
===With Compression===  
+
===With compression===
  
back up (for maximum compression use "gzip -c9")
+
To backup ''with'' compression:
<pre>
+
$ partclone.ext4 -c -s /dev/sda1 | gzip -c > ~/image_sda1.pcl.gz
partclone.extfs -c -s /dev/sda1 | gzip -c > ~/image_sda1.pcl.gz
+
</pre>
+
  
restore
+
{{Note|For maximum compression use "gzip -c9"}}
<pre>
+
zcat ~/image_sda1.pcl.gz | partclone.extfs -r -o /dev/sda1
+
</pre>
+
  
{{Note|Adjust source and target to your needs.}}
+
To restore it:
 
+
zcat ~/image_sda1.pcl.gz | partclone.ext4 -r -o /dev/sda1
[[Category:Software (English)]]
+

Revision as of 23:10, 15 September 2012

Partclone, like the well-known Partimage, can be used to back up and restore a partition while considering only used blocks.

Installation

Partclone is available in the community repository.

# pacman -S partclone

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