Partclone

From ArchWiki
Revision as of 19:47, 5 May 2009 by Franzb (Talk | contribs)

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).

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.