Operating System - HP-UX
1830464 Members
2367 Online
110005 Solutions
New Discussion

fbackup/frecover to disk compressed

 
SOLVED
Go to solution
David B. Bordwick
Occasional Contributor

fbackup/frecover to disk compressed

Is there any way to fbackup to disk in a compressed format either with a special device or pipe to the compress utility? If so, how to frecover the compressed files? Thanks.
3 REPLIES 3
Alexander M. Ermes
Honored Contributor

Re: fbackup/frecover to disk compressed

Hi there.
Try this for backup :

mkfifo /xxx/gzip_pipe
cat gzip_pipe > /xxx/backup.gz
fbackup -f /xxx/gzip_pipe .....


restore :
mkfifo /xxx/gzip_pipe
gunzip /xxx/backup.gz > /xxx/gzip_pipe
frecover -f /xxx/gzip_pipe .....


Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Alexander M. Ermes
Honored Contributor

Re: fbackup/frecover to disk compressed

Hi there.
Forgot one thing.
Run the cat statements as abckground processes.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
John Palmer
Honored Contributor
Solution

Re: fbackup/frecover to disk compressed

fbackup and frecover (like a lot of other commands) allow the use of -f - which specifies standard input/output as the file to operate on.

Thus you can do:
fbackup -f - | gzip >
gzcat | frecover -f -

Note that other arguments to fbackup and frecover are required. 'gzip' tends to compress better than 'compress' and the use of gzcat means that you don't need to unzip the file to use it thus saving diskspace.

Regards,
John