Operating System - HP-UX
1747988 Members
4674 Online
108756 Solutions
New Discussion юеВ

Re: How to take and restore from dd

 
SOLVED
Go to solution
Avinash20
Honored Contributor

How to take and restore from dd

Hi Gurus,

Since fbackup(1M) from 11.31 cannot be restored to fbackup to 11.23, I am forced to dd since files are more than 8 Gb

Please let me know the command syntax via dd to take the backup of mutiple folders to tape drive and the procedure to restore the same

I am little confused with dd(1)

Points will be assigned appropriately !!
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
15 REPLIES 15
john123
Trusted Contributor

Re: How to take and restore from dd

Consider to use tar..
It should be a better option than dd for file system backup
Analyst
Trusted Contributor

Re: How to take and restore from dd

Hi Avinash,

plz check the syntax

dd if =device name of=device name bs=blocksize in kb

dd if=/dev/rdsk/c1t2d0 of=/dev/dsk/c2t2d0 bs=1024k

Thnaks,
Analyst.
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to take and restore from dd

Hi:

Since you can't use 'frecover' to restore an 11.31 'fbackup' archive to 11.23 or earlier, I would use 'pax' to perform your backup. By using the '-x pax' archive format you can exceed the former 8GB limit when you create the archive.

Then, on 11.23, install the 'PAX-Enh' product to enable reading the large files:

http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PAX-ENH

Regards!

...JRF...
Steven Schweda
Honored Contributor

Re: How to take and restore from dd

> [...] I am forced to dd since files are
> more than 8 Gb

> Consider to use tar..

_GNU_ "tar" should be able to do it. "dd"
seems (to me) to be an inappropriate tool for
a job like this.

> [...] I would use 'pax' [...]

Should also be good, if your "pax" programs
are new enough.
Avinash20
Honored Contributor

Re: How to take and restore from dd

John: Will tar work for more than 8GB
http://docs.hp.com/en/5992-4616/ch03s04.html#bajcadeg

Analyst: Its good, but the command is good for device backup
Do we have command to take backup for directory

James:
This is what I was expecting.

Steven: Thanks for your advice on dd
GNU tar: Its open-source !!
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: How to take and restore from dd

I have some queries on pax, just let me test on my server and come back after some time
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Avinash20
Honored Contributor

Re: How to take and restore from dd

How do I take backup/restore via pax for following command

fbackup -v -f /dev/rmt/1m -i /u01

To take the fbackup via pax

# pax -w -f /dev/rtape/tape4QIC150 /u01 -x pax

How do I restore it.
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Dennis Handly
Acclaimed Contributor

Re: How to take and restore from dd

# pax -w -f /dev/rtape/tape4QIC150 /u01 -x pax
>How do I restore it?

Pretty much the same as tar except the options are rationalized:
# pax -r -f /dev/rtape/tape4QIC150 -p e
Avinash20
Honored Contributor

Re: How to take and restore from dd

I am continuing the thread so that we could be aware of the impact of the speed at which the backup runs

It took 3.5 Hrs for 260GB database using pax and same is taking only 2.5 Hrs for the same size using fbackup.

Do we have any docs which refer to the speed at which the backup tools takes time

Are there any options in pax command which gives total time at end, like fbackup does ??
"Light travels faster than sound. That's why some people appear bright until you hear them speak."