Partclone

From ArchWiki
Revision as of 20:26, 12 February 2009 by Pointone (Talk | contribs) (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...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Introduction

Partclone provides utilities to back up and restore only the used blocks of a partition. Therefore, Partclone produces smaller image files then dd does.

Partclone is available on the 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.

Usage

Without Compression

back up

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

restore

partclone.extfs -r -s ~/image_sda1.pcl -o /dev/sda1
Note: Adjust source and target to your needs.

With Compression

back up (for maximum compression use "gzip -c9")

partclone.extfs -c -s /dev/sda1 | gzip -c > ~/image_sda1.pcl.gz

restore

zcat ~/image_sda1.pcl.gz | partclone.extfs -r -o /dev/sda1
Note: Adjust source and target to your needs.