Question : dd & flar create  : syntax to use with pipe (|), gzip & ssh needed

Question 1:
========
I've taken a dd  of a partition to a disk file :
dd if=/dev/rdsk/c0t0d0s0 bs=2079152 of=/tmp/root.dd
(or in Linux, dd if=/dev/hda bs=2079152 of=/tmp/root.dd)
followed by gzip root.dd
Now I copy in binary mode & burn this root.dd.gz  to a DVD.
If I wish to restore root partition from the DVD (after booting
up Solaris/Linux from the OS CD), what's the command to
restore?   Is following syntax correct :
   dd if=`gunzip /cdrom/root.dd.gz` bs=2079152 of=/dev/rdsk/c0t0d0s0
   (is bs=2079152 needed here?


Question 2:
========
Referring to Question 1 above, if I were to take "flar create ..." instead,
what would be the syntax do it?

Kindly provide for both Solaris & Linux & HP-UX if there are differences


Question 3:
=========
If I were to take dd & "flar create ..." to a tape drv  /dev/rmt/0cn (compressed, norewind tape device)
are the following syntax correct :
dd if=/dev/rdsk/c0t0d0s0 of=/dev/rmt/0cn
flar create ...  -n /dev/rmt/0cn

Question 4:
========
Referring to Question 3, what would the command to restore from there?

Answer : dd & flar create  : syntax to use with pipe (|), gzip & ssh needed

why do you want to backup your systems by taking images with dd or flar ?

taking backup this way has many disadvantages:

1- inconsistent data / backup
2- you can not change partition size
3- you take more time to backup and to restore since you read and write all blocks regardless of having data or not
4- may not be possible to restore on a different env.

Random Solutions  
 
programming4us programming4us