Operating System - HP-UX
1833875 Members
3234 Online
110063 Solutions
New Discussion

Re: problem with backup on dat

 
Paola Giorgetti
New Member

problem with backup on dat

I started with

tar cv /cdr/OldCdrStorage/bo2gcg02.2005*.tar.gz /dev/rmt/0m

when I have this prompt

Tar: end of tape
Tar: to continue, enter device/file name when ready or null string to quit.

I wrote /dev/rmt/0m

but I had this error

sh: /dev/rmt/0m: Execute permission denied.


I checked and the dat it's not broken on unwritable.

The machine is an rp5470 with ho 11i

Anyone can tell me where is the error?

BR

Paola
6 REPLIES 6
Peter Godron
Honored Contributor

Re: problem with backup on dat

Paola,
are you sure you have the tar command the correct way ?

tar cvf /dev/rmt/0m /cdr/OldCdrStorage/bo2gcg02.2005*.tar.gz
nanan
Trusted Contributor

Re: problem with backup on dat

Hi !
you may miss typed the commands
OldSchool
Honored Contributor

Re: problem with backup on dat

are you sure you didn't type an "Enter" then "/dev/rmt/0m"?

The "enter" would have terminated the tar, then the the shell would have tried to execute "/dev/rmt/0m, giving the error.

or, could you have hit "enter" more than once after the initial tar command. It have buffered it and caused the same problem
Jonathan Fife
Honored Contributor

Re: problem with backup on dat

Hi,

The command as you typed it will create a tar that includes the files /cdr/OldCdrStorage/bo2gcg02.2005*.tar.gz and the contents of /dev/rmt/0m to the default tape device, which is /dev/rmt/0m. I don't think that is what you wanted.

Either remove the /dev/rmt/0m from the end of the command (ie. tar cv /cdr/OldCdrStorage/bo2gcg02.2005*.tar.gz) or do a tar -cvf /dev/rmt/0m /cdr/OldCdrStorage/bo2gcg02.2005*.tar.gz.
Decay is inherent in all compounded things. Strive on with diligence
Sp4admin
Trusted Contributor

Re: problem with backup on dat

Paola,

The device comes before your file name. Look like the command is incorrect.

sp,
Peter Godron
Honored Contributor

Re: problem with backup on dat

Paola,
could you please update this thread and if you happy with the answers, please read:
http://forums1.itrc.hp.com/service/forums/helptips.do?#28