You are not logged in.

Blog

Dear visitor, welcome to sourceserver.info. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Articles tagged with "Backup" (2)

2

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 59,243 times.

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


1

Backupscript für Webserver und MySQL

by DeaD_EyE (Monday, March 21st 2011, 11:05pm)

Sinn des Scripts
Ich habe angefangen für sourceserver.info ein Backupscript zu schreiben, welches die Datenbank und den Inhalt vom FTP sichert. Es sichert die SQL-Dateien mit dem Datumsstring + den Suffix mit bzip2-Kompression. Das FTP-Verzeichnis über lftp mit "mirror" gesichert und danach als tar mit bzip2 kompression abgespeichert. Der Dateiname des Archivs setzt sicht auch aus Datumsstring + Suffix zusammen.

This article has been read 7,237 times.

Tags: Backup, MySQL, Script, Webserver

Categories: Allgemein