You are not logged in.

Blog

Articles tagged with "howto" (1)

1

LVM Image Backup und Restore mit pbzip2

by MadMakz (Monday, January 14th 2013, 10:55am)

Vorteil von pbzip2: Multicore Unterstützung.

An pbzip2 wird mittels dem -p Switch definiert wieviele CPU-Kerne benutzt werden dürfen. In dem Beispiel sind es zwei (-p2).

Backup:

Source code

1
nohup dd if=/dev/<LVM Gruppe>/<LVM Disk> bs=512K | pbzip2 -p2 -9 > <Backupname>.bz2 &


Restore:

Source code

1
nohup pbzip2 -p2 -dcf <Backupname>.bz2 | dd of=/dev/mapper/<LVM Disk in welche das Backup gespielt werden soll> &

This article has been read 176,315 times.

Tags: Linux, Backup, howto, kvm, lvm, pbzip2, restore