Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


admin_grundlagen:image_sichern

Dies ist eine alte Version des Dokuments!


Images von Partitionen sichern

dd

Backup

Beispiel: Partition /dev/sda2 in Datei sichern

mount -o remount,ro /dev/sda2
dd if=/dev/sda2 of=/tmp/sda2.img bs=1M status=progress

oder

dd if=/dev/sda2 bs=1M | gzip > /tmp/sda2.img.gz
mount -o remount,rw /dev/sda2

Restore

Beispiel: Partition /dev/sda2 aus Image-Datei wiederherstellen

umount /dev/sda2
dd if=/tmp/sda2.img of=/dev/sda2 bs=1M status=progress

oder

zcat /tmp/sda2.img.gz | dd of=/dev/sda2 bs=1M

fsarchiver

Backup

Beispiel: Partition /dev/sda2 in Datei sichern

mount -o remount,ro /dev/sda2
fsarchiver savefs /home/nutzer48/sda2.fsa /dev/sda2
mount -o remount,rw /dev/sda2

Archiv ansehen

fsarchiver archinfo /home/nutzer48/sda2.fsa

Restore

Beispiel: Partition /dev/sda2 aus fsarchiver-Archiv wiederherstellen

umount /dev/sda2
fsarchiver restfs /home/nutzer48/sda2.fsa id=0,dest=/dev/sda2
admin_grundlagen/image_sichern.1542973801.txt.gz · Zuletzt geändert: 2018/11/23 11:50 von ingo_wichmann