You are not logged in.

#1 2018-12-21 21:27:45

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

system backups using e2image.

Hello. I did a backup of my root partition using e2image (something like e2image -ra /dev/mapper/root /second/luks/encrypted/disk/root.img). It's a raw disk image. Now if some disaster happens and I need to restore it, do I need to specify some offset or does e2image -ra root.img /dev/mapper/root enough?

I couldn't find a relevant forum section for this so I made a quick choice to just post here.
Thank you!

Last edited by hussam (2018-12-21 21:29:35)

Offline

#2 2018-12-22 08:32:16

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: system backups using e2image.

First, you must backup partition that are not mounted. So if you want to back up your root partition, you can only do it from a boot disk. Otherwise, the image will be corrupted. To restore the image, just do e2image -ra root.img /target/partition where /target/.partition is the partition you want to restore. Again /target/partition must not be mounted.

Offline

#3 2018-12-22 09:07:42

hussam
Member
Registered: 2006-03-26
Posts: 572
Website

Re: system backups using e2image.

I did the backup from a boot disk (the arch linux iso image) while /dev/mapper/root was not mounted.
Ok, great. Thank you.

Offline

Board footer

Powered by FluxBB