ontape restore error
Posted in 2008
Topics: Backup & Restore
i am getting an error trying to restore an informix db using ontape
command....
[root@server1 tmp]# cat informix.backup | ontape -r
Physical restore failed - function read archive backup failed code -1
errno 0
this is the process i used to backup the db on another machine....
I changed TAPEDEV and LTAPEDEV to STDIO
then....
ontape -v -s -L 0 | gzip -c >/tmp/informix.backup
thanks,
matt
matt wrote:
> i am getting an error trying to restore an informix db using ontape
> command....
>
> [root@server1 tmp]# cat informix.backup | ontape -r
> Physical restore failed - function read archive backup failed code -1
> errno 0
>
> this is the process i used to backup the db on another machine....
>
> I changed TAPEDEV and LTAPEDEV to STDIO
>
> then....
>
> ontape -v -s -L 0 | gzip -c >/tmp/informix.backup>
> thanks,
> matt
>
So, you have a gzip'd backup file?
And you want to cat a gzip file (without gunzip'ing it) to ontape?
Why not try gunzip'ing the file before trying to give it to ontape :-/