1753361 Members
5790 Online
108792 Solutions
New Discussion юеВ

Backup, List, Restore

 
SOLVED
Go to solution
Sam_92
Occasional Contributor

Backup, List, Restore

Dear Sirs,


Consider the following conditions:

0- I have a "hp rp2470" server
1- HP-UX 11.0
2- "hp surestore dat 40" located in "/dev/rmt/c0t0d0DDS" (For example)
3- I use the following commands for making backup (Does It seems OK?!)
-----------------------------------------------
3-1- find /my-files -print | cpio -ovcdumB > /dev/rmt/c0t0d0DDS
3-2- tar cvf /dev/rmt/c0t0d0DDS ./my-files
-----------------------------------------------
-----------------------------------------------
4- As I said both of them work ok but I can not list the content of tape
Using these commands
-----------------------------------------------
4-1- cpio -itvc < /dev/rmt/c0t0d0DDS
4-2- tar tvf /dev/rmt/c0t0d0DDS
-----------------------------------------------
-----------------------------------------------
5- As I don't have any feeling of WHAT IS ON THE TAPE, I am afraid of
Restoring them using the following commands
-----------------------------------------------
5-1- cpio -ivcdumB < /dev/rmt/c0t0d0DDS
5-2- tar xvf /dev/rmt/c0t0d0DDS
-----------------------------------------------
-----------------------------------------------
6- OK FOLKS THATS ALL! , would you please help me?
What's wrong with me? Assume that you are talking with an idiot

7- BEST WISHES
sam
6 REPLIES 6
John Carr_2
Honored Contributor

Re: Backup, List, Restore

SAm

try

mt -t /dev/rmt/c0t0d0DDS rew

tar -tv /dev/rmt/c0t0d0DDS rew

the f option in tar is for a file not a device

John.
Michael Tully
Honored Contributor
Solution

Re: Backup, List, Restore

Why not use 'fbackup' which is native to HPUX.

fbackup -i / -f /dev/rmt/0m
to look at the archive
frecover -I /tmp/index -f /dev/rmt/0m
Anyone for a Mutiny ?

Re: Backup, List, Restore

Hi,
you take care with using absolute paths,
because tar is very strict (unless you use
gtar) and you do not have any flexibility
to restore your files.
The 'f' option is needed if you use a
different archive thahn /dev/rmt/0m.
Try the following command on your tapes.
#dd if=/dev/c0t0d0DDS of=/tmp/test.dd bs=1k count=1
#file /tmp/test.dd
In case you have a cpio or tar archive
the 'file' will tell you the same. On this
short 'test.dd' the tar and cpio list
command should work and give the beginning
of your archive.

Regards,
Matthias
Regards,
Matthias
Jakes Louw
Trusted Contributor

Re: Backup, List, Restore

Yes, be very careful: if you specify the following:

tar cvf /dev/rmt/c0t1d0DDS

and that device does not actually exist with that special file, TAR will create a file with that name. This could cause the root disk to fill up, and you will have a major problem.
Trying is the first step to failure - Homer Simpson
Sam_92
Occasional Contributor

Re: Backup, List, Restore

Dear Sirs,

Thanks a lot for your help, I just used
Fbackup, but when I used freover as
Described below
frecover -I path -f /dev/rmt/c0d0t0DDS
It indicate that
--------------------------------------
frecover(5405) unable to open /dev/rmt/c0d0t0DDS
--------------------------------------
frecover(5406) do you wish to continue...
bla bla bla
--------------------------------------
Ooops! It does not seems good. Is is?

Would you please tell me that I am right or not?

1- We use frecover with the above /\ syntax
Just to see backup media content (True/False)
2- So, what could be the restore command looks like? Should I use Pipeline or something just like it?


Best Wishes
sam

Re: Backup, List, Restore

Hi Sam,
why do you use the device
'/dev/rmt/c0t0d0DDS'? This seems
to be a device for DDS1 tape cartridge
(check sam => peripheral => tape => devices).
In case you have a DDS2 or higher tape drive,
you should rather use the default device (/dev/rmt/0m).
---
BTW, you should assign points for the hints from the different people, even though they did not yet resolve your problem.

Regards,
Matthias