Re: [expert] clonning HD

2003-01-01 Thread ddc_prueba
Maybe it's now solved, but just in case...

I got my backup/recovery solved by:

* Making the backup file:
find /directory_to_start_backup_from -xdev | grep -v
"/path_not_to_backup/" | cpio -o -H crc | bzip2 -9 -k >
compressed_backup_file.cpio.bz2

* Restoring backup (to current directory):
bunzip2 -kc compressed_backup_file.cpio.bz2 | cpio -idmu
--no-absolute-filenames

* Listing files in backup file:
bunzip2 -kc compressed_backup_file.cpio.bz2 | cpio -itv


You can use split to write to CDROM if back_file is too big (for a 80min
CD):
split -b 68000 compressed_backup_file.cpio.bz2
And getting then back is as easy as:
cat file1 file2 ... fileN > compressed_backup_file.cpio.bz2


Also incremental backup is easy this way:
1) Do touch /path_to_file/date_from_last_backup when you do a backup
2) To do the incremental one just do:
find /directory_to_start_backup_from -newer
/path_to_file/date_from_last_backup -xdev | grep -v
"/path_not_to_backup/" | cpio -o -H crc | bzip2 -9 -k >
compressed_backup_file.cpio.bz2




Long commands but easy (I think ;-))



Good luck!!



El vie, 13-12-2002 a las 12:49, Alan Wilter Sousa da Silva escribió:
> 
> Hi List,
> 
>   I have an idea about how 'dd' can be powerful.  However I don't
> know if it's able to clone my HD to another bigger size one.
> 
>   If so, how could I do it?
> 
>   If not, could someone suggest me a programme or something to clone
> a HD with data and whole OS to a new one
> 
> Many thanks in advance,
> 
> Cheers,
> 
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
> 
> 
> 
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
   Diego  Dominguez 
  __/\__  
 |  | 
 Andalucia  /\  Spain
\/
 |__  __| 
\/


___
Yahoo! Postales
Felicita las Navidades con las postales más
divertidas desde http://postales.yahoo.es


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] clonning HD

2002-12-16 Thread Felix Miata
Lieven Van Acker wrote:
 
> partimage: cloning partitions
> parted: resizing partitions

Partition Magic: cloning and resizing and formatting and more
-- 
"If you are wise, your wisdom will reward you. . . ." Proverbs 9:12 NIV

 Team OS/2 ** Reg. Linux User #211409

Felix Miata  ***  http://members.ij.net/mrmazda/



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] clonning HD

2002-12-16 Thread Lieven Van Acker
partimage: cloning partitions
parted: resizing partitions

don't know locations. Try google...

regards,

Lieven Van Acker
Op vr 13-12-2002, om 12:49 schreef Alan Wilter Sousa da Silva:
> Hi List,
> 
>   I have an idea about how 'dd' can be powerful.  However I don't
> know if it's able to clone my HD to another bigger size one.
> 
>   If so, how could I do it?
> 
>   If not, could someone suggest me a programme or something to clone
> a HD with data and whole OS to a new one
> 
> Many thanks in advance,
> 
> Cheers,
> 
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
> 
> 
> 
> __
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
Lieven Van Acker <[EMAIL PROTECTED]>
ELiSA



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] clonning HD

2002-12-16 Thread Lieven Van Acker
partimage: cloning partitions
parted: resizing partitions

don't know locations. Try google...

regards,

Lieven Van Acker
Op vr 13-12-2002, om 12:49 schreef Alan Wilter Sousa da Silva:
> Hi List,
> 
>   I have an idea about how 'dd' can be powerful.  However I don't
> know if it's able to clone my HD to another bigger size one.
> 
>   If so, how could I do it?
> 
>   If not, could someone suggest me a programme or something to clone
> a HD with data and whole OS to a new one
> 
> Many thanks in advance,
> 
> Cheers,
> 
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
> 
> 
> 
> __
> 
> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
Lieven Van Acker <[EMAIL PROTECTED]>
ELiSA



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] clonning HD

2002-12-13 Thread Toshiro
El Vie 13 Dic 2002 09:06, Peter Stokes escribió:
> Hi Alan
>
> dd will only copy block for block normally, so if you are copying from a
> 40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.
>
> Much better to use dump/restore etc and reinstall LILO etc to transfer it.

The use of dump/restore is heavily deprecated by Linus himself; have a look at 
the mail below.

Toshiro.


From: Linus Torvalds 
To: Neil Conway 
Subject: Re: [PATCH] SMP race in ext2 - metadata corruption. 
Date: Fri, 27 Apr 2001 09:59:46 -0700 (PDT) 
Cc: Kernel Mailing List linux-kernel At vger Dot kernel Dot org   

[ linux-kernel added back as a cc ] 

On Fri, 27 Apr 2001, Neil Conway wrote: 
>> I'm surprised that dump is deprecated (by you at least ;-)). What to 
>  use instead for backups on machines that can't umount disks regularly? 

Note that dump simply won't work reliably at all even in 2.4.x: the buffer 
cache and the page cache (where all the actual data is) are not coherent. 
This is only going to get even worse in 2.5.x, when the directories are moved 
into the page cache as well. 

So anybody who depends on "dump" getting backups right is already playing 
Russian roulette with their backups. It's not at all guaranteed to get the 
right results - you may end up having stale data in the buffer cache that 
ends up being "backed up".

Dump was a stupid program in the first place. Leave it behind.   

> I've always thought "tar" was a bit undesirable (updates atimes or  
> ctimes for example). 

Right now, the cpio/tar/xxx solutions are definitely the best ones, and will 
work on multiple filesystems (another limitation of "dump"). Whatever 
problems they have, they are still better than the _guaranteed_(*) data 
corruptions of "dump". 

However, it may be that in the long run it would be advantageous to have a 
"filesystem maintenance interface" for doing things like backups and 
defragmentation.. 

Linus 

(*) Dump may work fine for you a thousand times. But it _will_ fail under the 
right circumstances. And there is nothing you can do about

-- 
Toshiro


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] clonning HD

2002-12-13 Thread Franki
Thats an interesting point...

I have a spare 8 gig hard disk here..

I was toying with the idea of setting it up with all the packages and
settings I use accross our network..

as an example:

ext3 all round.
postfix=>amavis-new=>spamassasin/Trend filescan
and the dozens of modules compiled to get it all working.

it takes ages to set this all up over and over again..

would be great if I had the base install on my 8gig drive, and could use
something to mirror it over to another drive..

I don't care about the partition size, I could resize them myself easily
enough if I need to.

I just get sick of setting up the same type of box's over and over again...

One of these days I will play with making my own rpms.. so I could just
install them all in one hit.. but right now I don't have time to do that..

(incidently, how hard would it be to make a single rpm that would install
all my spamassasin/amavis-new/filescan stuff???)

I only know perl and the basics of ansi c++, so I don't know if I have the
required knowledge to do it.

any tips?


rgds

Frank

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
da Silva
Sent: Friday, 13 December 2002 9:02 PM
To: [EMAIL PROTECTED]
Subject: RE: [expert] clonning HD


Thank you Peter,

However, with dump/restore I couldn't change my filesystem from
ext2 to reiserfs, could I?

Then here is my proposed mini how-to and, please, see if it's
right:

1- Install new bigger HD
2- Format (with reiserfs in my case) and mount it
3- copy whole old HD to the new one
(but how? With a simple 'cp', 'cpio', 'dd' or 'dump'?)
3- Run 'mkinitrd' and lilo
4- Pray

I would ask to anyone else look too this, please.

Bye,

On Fri, 13 Dec 2002, Peter Stokes wrote:

> Hi Alan
>
> dd will only copy block for block normally, so if you are copying from a
> 40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.
>
> Much better to use dump/restore etc and reinstall LILO etc to transfer it.
> The other benefit dump/restore is each file is treated as such, rather
than
> just a bunch of disk blocks which is a good check that the filesystem
> consistency is good.
>
> If you just want to clone same size disk to disk then you can use dd as a
> short cut, but if you have time go the dump route.
>
> Just my 2p worth, but has worked for me over many years.
>
> Peter
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
> da Silva
> Sent: 13 December 2002 11:49
> To: [EMAIL PROTECTED]
> Subject: [expert] clonning HD
>
>
>
> Hi List,
>
>   I have an idea about how 'dd' can be powerful.  However I don't
> know if it's able to clone my HD to another bigger size one.
>
>   If so, how could I do it?
>
>   If not, could someone suggest me a programme or something to clone
> a HD with data and whole OS to a new one
>
> Many thanks in advance,
>
> Cheers,
>
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
>
>
>
>
>

--
---
Alan Wilter S. da Silva
---
 Laboratório de Física Biológica
  Instituto de Biofísica Carlos Chagas Filho
   Universidade do Brasil/UFRJ
Rio de Janeiro, Brasil





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



Re: [expert] clonning HD

2002-12-13 Thread Mark Alexander
On Fri, Dec 13, 2002 at 11:01:43AM -0200, Alan Wilter Sousa da Silva wrote:
> 3- copy whole old HD to the new one
> (but how? With a simple 'cp', 'cpio', 'dd' or 'dump'?)

You can also use tar for wholesale copying of entire directories.  For
example, this will copy the contents of $source_dir to the current
directory.

  (cd $source_dir; tar cf - .) | tar xvf -


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] clonning HD

2002-12-13 Thread Jack Coates
On Fri, 2002-12-13 at 05:01, Alan Wilter Sousa da Silva wrote:
> Thank you Peter,
> 
>   However, with dump/restore I couldn't change my filesystem from
> ext2 to reiserfs, could I?
> 
>   Then here is my proposed mini how-to and, please, see if it's
> right:
> 
> 1- Install new bigger HD
> 2- Format (with reiserfs in my case) and mount it
> 3- copy whole old HD to the new one
> (but how? With a simple 'cp', 'cpio', 'dd' or 'dump'?)

I always do this with cp -a -- I also do it in runlevel 1 or from a
restore disk depending on whether I'm actually copying / or not.

> 3- Run 'mkinitrd' and lilo
> 4- Pray
> 
> I would ask to anyone else look too this, please.
> 
> Bye,
> 
> On Fri, 13 Dec 2002, Peter Stokes wrote:
> 
> > Hi Alan
> >
> > dd will only copy block for block normally, so if you are copying from a
> > 40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.
> >
> > Much better to use dump/restore etc and reinstall LILO etc to transfer it.
> > The other benefit dump/restore is each file is treated as such, rather than
> > just a bunch of disk blocks which is a good check that the filesystem
> > consistency is good.
> >
> > If you just want to clone same size disk to disk then you can use dd as a
> > short cut, but if you have time go the dump route.
> >
> > Just my 2p worth, but has worked for me over many years.
> >
> > Peter
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
> > da Silva
> > Sent: 13 December 2002 11:49
> > To: [EMAIL PROTECTED]
> > Subject: [expert] clonning HD
> >
> >
> >
> > Hi List,
> >
> > I have an idea about how 'dd' can be powerful.  However I don't
> > know if it's able to clone my HD to another bigger size one.
> >
> > If so, how could I do it?
> >
> > If not, could someone suggest me a programme or something to clone
> > a HD with data and whole OS to a new one
> >
> > Many thanks in advance,
> >
> > Cheers,
> >
> > ---
> > Alan Wilter S. da Silva
> > ---
> >  Laboratório de Física Biológica
> >   Instituto de Biofísica Carlos Chagas Filho
> >Universidade do Brasil/UFRJ
> > Rio de Janeiro, Brasil
> >
> >
> >
> >
> >
> 
> -- 
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
> 
> 
> 
> 

> Want to buy your Pack or Services from MandrakeSoft? 
> Go to http://www.mandrakestore.com
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] clonning HD

2002-12-13 Thread Lieven Van Acker
You can also look at the tools parted and partimage

partimage is particulary usefull make/restore images,
parted can be used (e.g.) to resize filesystems

Regards,

Lieven

Op vr 13-12-2002, om 14:01 schreef Alan Wilter Sousa da Silva:
> Thank you Peter,
> 
>   However, with dump/restore I couldn't change my filesystem from
> ext2 to reiserfs, could I?
> 
>   Then here is my proposed mini how-to and, please, see if it's
> right:
> 
> 1- Install new bigger HD
> 2- Format (with reiserfs in my case) and mount it
> 3- copy whole old HD to the new one
> (but how? With a simple 'cp', 'cpio', 'dd' or 'dump'?)
> 3- Run 'mkinitrd' and lilo
> 4- Pray
> 
> I would ask to anyone else look too this, please.
> 
> Bye,
> 
> On Fri, 13 Dec 2002, Peter Stokes wrote:
> 
> > Hi Alan
> >
> > dd will only copy block for block normally, so if you are copying from a
> > 40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.
> >
> > Much better to use dump/restore etc and reinstall LILO etc to transfer it.
> > The other benefit dump/restore is each file is treated as such, rather than
> > just a bunch of disk blocks which is a good check that the filesystem
> > consistency is good.
> >
> > If you just want to clone same size disk to disk then you can use dd as a
> > short cut, but if you have time go the dump route.
> >
> > Just my 2p worth, but has worked for me over many years.
> >
> > Peter
> >
> >
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
> > da Silva
> > Sent: 13 December 2002 11:49
> > To: [EMAIL PROTECTED]
> > Subject: [expert] clonning HD
> >
> >
> >
> > Hi List,
> >
> > I have an idea about how 'dd' can be powerful.  However I don't
> > know if it's able to clone my HD to another bigger size one.
> >
> > If so, how could I do it?
> >
> > If not, could someone suggest me a programme or something to clone
> > a HD with data and whole OS to a new one
> >
> > Many thanks in advance,
> >
> > Cheers,
> >
> > ---
> > Alan Wilter S. da Silva
> > ---
> >  Laboratório de Física Biológica
> >   Instituto de Biofísica Carlos Chagas Filho
> >Universidade do Brasil/UFRJ
> > Rio de Janeiro, Brasil
> >
> >
> >
> >
> >
-- 
Lieven Van Acker <[EMAIL PROTECTED]>
ELiSA



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] clonning HD

2002-12-13 Thread Alan Wilter Sousa da Silva
Thank you Peter,

However, with dump/restore I couldn't change my filesystem from
ext2 to reiserfs, could I?

Then here is my proposed mini how-to and, please, see if it's
right:

1- Install new bigger HD
2- Format (with reiserfs in my case) and mount it
3- copy whole old HD to the new one
(but how? With a simple 'cp', 'cpio', 'dd' or 'dump'?)
3- Run 'mkinitrd' and lilo
4- Pray

I would ask to anyone else look too this, please.

Bye,

On Fri, 13 Dec 2002, Peter Stokes wrote:

> Hi Alan
>
> dd will only copy block for block normally, so if you are copying from a
> 40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.
>
> Much better to use dump/restore etc and reinstall LILO etc to transfer it.
> The other benefit dump/restore is each file is treated as such, rather than
> just a bunch of disk blocks which is a good check that the filesystem
> consistency is good.
>
> If you just want to clone same size disk to disk then you can use dd as a
> short cut, but if you have time go the dump route.
>
> Just my 2p worth, but has worked for me over many years.
>
> Peter
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
> da Silva
> Sent: 13 December 2002 11:49
> To: [EMAIL PROTECTED]
> Subject: [expert] clonning HD
>
>
>
> Hi List,
>
>   I have an idea about how 'dd' can be powerful.  However I don't
> know if it's able to clone my HD to another bigger size one.
>
>   If so, how could I do it?
>
>   If not, could someone suggest me a programme or something to clone
> a HD with data and whole OS to a new one
>
> Many thanks in advance,
>
> Cheers,
>
> ---
> Alan Wilter S. da Silva
> ---
>  Laboratório de Física Biológica
>   Instituto de Biofísica Carlos Chagas Filho
>Universidade do Brasil/UFRJ
> Rio de Janeiro, Brasil
>
>
>
>
>

-- 
---
Alan Wilter S. da Silva
---
 Laboratório de Física Biológica
  Instituto de Biofísica Carlos Chagas Filho
   Universidade do Brasil/UFRJ
Rio de Janeiro, Brasil



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



RE: [expert] clonning HD

2002-12-13 Thread Peter Stokes
Hi Alan

dd will only copy block for block normally, so if you are copying from a
40Gb disk to an 80Gb, the resulting filesystem will still only be 40Gb.

Much better to use dump/restore etc and reinstall LILO etc to transfer it.
The other benefit dump/restore is each file is treated as such, rather than
just a bunch of disk blocks which is a good check that the filesystem
consistency is good.

If you just want to clone same size disk to disk then you can use dd as a
short cut, but if you have time go the dump route.

Just my 2p worth, but has worked for me over many years.

Peter


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Alan Wilter Sousa
da Silva
Sent: 13 December 2002 11:49
To: [EMAIL PROTECTED]
Subject: [expert] clonning HD



Hi List,

I have an idea about how 'dd' can be powerful.  However I don't
know if it's able to clone my HD to another bigger size one.

If so, how could I do it?

If not, could someone suggest me a programme or something to clone
a HD with data and whole OS to a new one

Many thanks in advance,

Cheers,

---
Alan Wilter S. da Silva
---
 Laboratório de Física Biológica
  Instituto de Biofísica Carlos Chagas Filho
   Universidade do Brasil/UFRJ
Rio de Janeiro, Brasil





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com



[expert] clonning HD

2002-12-13 Thread Alan Wilter Sousa da Silva

Hi List,

I have an idea about how 'dd' can be powerful.  However I don't
know if it's able to clone my HD to another bigger size one.

If so, how could I do it?

If not, could someone suggest me a programme or something to clone
a HD with data and whole OS to a new one

Many thanks in advance,

Cheers,

---
Alan Wilter S. da Silva
---
 Laboratório de Física Biológica
  Instituto de Biofísica Carlos Chagas Filho
   Universidade do Brasil/UFRJ
Rio de Janeiro, Brasil



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com