From: Bernard on
Hi to Everyone !

On my previous systems, I used to create overall backups of partitions,
using 'SystemRescueCD'. This is no longer possible ever since 2007 that
I have a RAID1 mirroring system on my Debian. SystemRescueCD does not
backup LVM volumes, or, if it does, that must be a very new feature, and
I have not found any doc on this.

So, what should I do so as to backup my system ? I once tried 'dd', but
I think I remember it took forever, and I don't really know whether I
would have been able to use the resulting file to successfully restore
the partitions if needed.

Could someone suggest something that has been successfully tried ? Even
'dd' could do, if it is OK with LVM and if I get some details. I
understand that I would have to unmount the partitions, but this is not
a problem. I have two IDE mirrored disks of 200 GB each.

Thanks in advance for your insights.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BD614B4.5060209(a)teaser.fr
From: Steven on

On Tue, April 27, 2010 00:33, Bernard wrote:
> Hi to Everyone !
>
> On my previous systems, I used to create overall backups of partitions,
> using 'SystemRescueCD'. This is no longer possible ever since 2007 that
> I have a RAID1 mirroring system on my Debian. SystemRescueCD does not
> backup LVM volumes, or, if it does, that must be a very new feature, and
> I have not found any doc on this.
>
> So, what should I do so as to backup my system ? I once tried 'dd', but
> I think I remember it took forever, and I don't really know whether I
> would have been able to use the resulting file to successfully restore
> the partitions if needed.
>
> Could someone suggest something that has been successfully tried ? Even
> 'dd' could do, if it is OK with LVM and if I get some details. I
> understand that I would have to unmount the partitions, but this is not
> a problem. I have two IDE mirrored disks of 200 GB each.
>
> Thanks in advance for your insights.
>

How about clonezilla (http://www.clonezilla.org/)? It supports LVM2 (not
1) and is based on Debian (I think you should be able to get what you need
from the Debian repositories anyway). But I'm not an expert :)


--
Rarely do people communicate; they just take turns talking.


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/14970.81.246.17.226.1272353817.squirrel(a)stevenleeuw.kwik.to
From: Chris Davies on
Bernard <bdebreil(a)teaser.fr> wrote:
> On my previous systems, I used to create overall backups of partitions,
> using 'SystemRescueCD'. This is no longer possible ever since 2007 that
> I have a RAID1 mirroring system on my Debian.

You used to boot from SystemRescueCD and backup the partitions
corresponding to the (unmounted) filesystems block by block? Or you
mounted them and backed up the (mounted) filesystems?

You can continue to do either of these that even though you've got RAID1
and LVM. Start up RAID1 and LVM, and then back up the logical partitions
(or filesystems) that result. Ignore the physical ones.


> SystemRescueCD does not backup LVM volumes, or, if it does, that must
> be a very new feature, and I have not found any doc on this.

TBH I'm not aware of any backup feature within SystemRescueCD, but there
are many useful tools there. I've successfully fixed up software RAID1
configurations, and it must work with LVM because most of my systems'
filesystems are based on RAID1/LVM combinations and it works for me.


> So, what should I do so as to backup my system ? I once tried 'dd', but
> I think I remember it took forever [...]

Without the bs argument you would have been reading the disk 512bytes
at a time. Try bs=1000k for better throughput.


> I don't really know whether I would have been able to use the resulting
> file to successfully restore the partitions if needed.

How do you know any of your backups work? Test them!


> Could someone suggest something that has been successfully tried ? Even
> 'dd' could do, if it is OK with LVM and if I get some details. I
> understand that I would have to unmount the partitions, but this is not
> a problem. I have two IDE mirrored disks of 200 GB each.

LVM provides a snapshot mode for this kind of requirement. It's not
stunning but it's usually sufficient.

Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/bq2ja7x5rc.ln2(a)news.roaima.co.uk
From: Johannes Wiedersich on
Bernard wrote:
> Hi to Everyone !
>
> On my previous systems, I used to create overall backups of partitions,
> using 'SystemRescueCD'. This is no longer possible ever since 2007 that
> I have a RAID1 mirroring system on my Debian. SystemRescueCD does not
> backup LVM volumes, or, if it does, that must be a very new feature, and
> I have not found any doc on this.

Why do you want to backup LVM volumes instead of simply backing up your
data?

rsync -a /mounted/partition /directory/on/mounted/backup

backs up all I need. Read man rsync for its options.

> So, what should I do so as to backup my system ? I once tried 'dd', but
> I think I remember it took forever, and I don't really know whether I
> would have been able to use the resulting file to successfully restore
> the partitions if needed.

dd will copy everything, including empty space.

> Could someone suggest something that has been successfully tried ? Even
> 'dd' could do, if it is OK with LVM and if I get some details. I
> understand that I would have to unmount the partitions, but this is not
> a problem. I have two IDE mirrored disks of 200 GB each.

Why not just copy the data off the mounted partition. Even more simple
and faster.

--
Johannes

In questions of science, the authority of a thousand is not worth the
humble reasoning of a single individual.
- Galileo Galilei, physicist and astronomer (1564-1642)


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/4BD70A07.6040109(a)physik.blm.tu-muenchen.de
From: Chris Davies on
Johannes Wiedersich <johannes(a)physik.blm.tu-muenchen.de> wrote:
> rsync -a /mounted/partition /directory/on/mounted/backup
> backs up all I need. Read man rsync for its options.

> Why not just copy the data off the mounted partition. Even more simple
> and faster.

That's great for you. It might not be so useful for the OP, because
their filesystem is fast-changing and/or contains large files (or
groups of files) that are updated but need to maintain their internal
integrity. Consider MySQL database files as one simple example of such.

Chris


--
To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org
Archive: http://lists.debian.org/r7pja7xlvi.ln2(a)news.roaima.co.uk