1752278 Members
4742 Online
108786 Solutions
New Discussion юеВ

Re: dd sintaxis

 
SOLVED
Go to solution
Edwin Ruiz_2
Super Advisor

dd sintaxis

Can i backup files to tape using dd command like tar?

wich is the sintaxis?

Thanks for ur help.

6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: dd sintaxis

While you could do this, I can't imagine why you would want to. Tar or fbackup would be much more appropriate.

dd if=/dev/rdsk/c0t0d0 of=/dev/rmt/0m bs=1024k

-or-

dd if=/bigfile of=/dev/rmt/0m bs=1024


Pete

Pete
Edwin Ruiz_2
Super Advisor

Re: dd sintaxis

because i want to backup one file of size 60 GB.. tar can not make that and fbackup just work with HP-UX . I want to restore under Solaris.

hoe can i restore using dd comman?
Geoff Wild
Honored Contributor

Re: dd sintaxis

To backup a disk:

dd if=/dev/dsk/cXtXdX of=/dev/rmt/0m

or say /home mounted on =/dev/vg00/lvol5

dd if=/dev/vg00/lvol5 of=/dev/rmt/0m


man dd for more info


Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: dd sintaxis

restore opposite:

cd /somemountpoint

dd if=/dev/rmt/0m

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Pete Randall
Outstanding Contributor

Re: dd sintaxis

To restore, just reverse it:

dd if=/dev/rmt/0m of =/filename bs=1024


Pete

Pete
Edwin Ruiz_2
Super Advisor

Re: dd sintaxis

thanks for all...

Best Regards