1833828 Members
2088 Online
110063 Solutions
New Discussion

Re: fbackup redirection

 
I.Delic
Super Advisor

fbackup redirection

Hi,

is it possible to redirect the output form frecover ?
For example:
fbackup -f /dev/rmt/0m -i /home/user1 -I index.home
this backup i like to redirect to
/tmp/usr1
frecover -f /dev/rmt/0m -i /home/usr1 -xv that can but redirection direct from the tape ????

thank you in advance

Idriz
4 REPLIES 4
G. Vrijhoeven
Honored Contributor

Re: fbackup redirection

Hi Idriz,

You could try the -X option, check man frecover:

-X Recover files relative to the current working directory.
Normally frecover recovers files to their absolute path
name.


Gideon

Darren Prior
Honored Contributor

Re: fbackup redirection

Hi Idriz,

Are you asking to redirect the output that you would see from fbackup on the screen into a file? If so, then just add 2> /tmp/usr to end of your command line. The 2 is required as fbackup sends the info to stderr rather than stdout. You may also like to use -v option to fbackup to get more verbose info - see the fbackup man page for more.

regards,

Darren.
Calm down. It's only ones and zeros...
I.Delic
Super Advisor

Re: fbackup redirection

No daren,

I like to redirect the directory's and files from the tape !
For example:
I make backup of /home/usr1 and i want redirect this to an another directory
for example
/tmp/usr/usr1

I can simply do
frecover -f /dev/rmt/0m -i /home/usr1 -xv and afterthat cp /home/usr1 /tmp/usr but it is to difficulty.

I want to redirect it direct from the tape to an another directory

is it possibly ?


Idriz

Darren Prior
Honored Contributor

Re: fbackup redirection

Hi Idriz,

Thanks for clarifying that. :)

I think the -X option as suggested by Gideon is suitable for what you want to do.

I guess the data is taken from one server to another, otherwise you'd just perform a straight cp (or perhaps use cpio.)

regards,

Darren.
Calm down. It's only ones and zeros...