1834397 Members
2263 Online
110067 Solutions
New Discussion

fbackup compressed mode

 
f. halili
Trusted Contributor

fbackup compressed mode

I want to use fbackup and send the output to a file. The file must be compressed as well, or smaller than the space than the size of the actual files. Is this possible?

thanks!!!

f. halili
derekh
6 REPLIES 6
Steve Steel
Honored Contributor

Re: fbackup compressed mode

Hi

fbackup -0 -i/dir -f - | compress | dd of=/tmp/savefile obs=10k

To read

dd if=/mp/savefile ibs=10k | uncompress | frecover -I - -f -
dd if=/tmp/savefile ibs=10k | uncompress | frecover -x -i/dir


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
RAC_1
Honored Contributor

Re: fbackup compressed mode

fbackup -i /dir -v -f - | compress > /store_dir/some_file.Z
There is no substitute to HARDWORK
f. halili
Trusted Contributor

Re: fbackup compressed mode

to all ... please give the commands to extract as well. THANKS
derekh
Peter Godron
Honored Contributor

Re: fbackup compressed mode

Hi,
This SHOULD work?! UNTESTED
1) Make a pipe
mknod /tmp/bak_pipe p
2)Compress in background
compress < /tmp/bak_pipe > data.Z &
3) Backup to the pipe
fbackup -nAvf /tmp/bak_pipe -g graph.file

Regards
f. halili
Trusted Contributor

Re: fbackup compressed mode

Steve,

I tried your backup to file and it works. To extract do I ran the two lines you gave?

I tried running each & I was not able to extract. Please send one liner to extract & I will test. Thanks!!!

f. halili
derekh
f. halili
Trusted Contributor

Re: fbackup compressed mode

Hello RAC,

Tries your command & it works.
Can you send the command to extract as well so I can test?

THANKS.
f. halili
derekh