Operating System - HP-UX
1833046 Members
2632 Online
110049 Solutions
New Discussion

Re: Fbackup/frecover question

 
Filosofo
Regular Advisor

Fbackup/frecover question

Hi,
I execute this command:
fbackup -i /mount1 -f - | (cd /mount2; frecover -Xrf -)

but when I see if recover is correct I see that under /mount2 (directory where I must recover) frecover recreate mount1 ....
Like this.... /mount2/mount1


I would recover all files and directory under mount1 on mount2 whitout recreate mount1.

I hope that my poor english is understood....

Thanks

Filo
Sistem engeneer expert
2 REPLIES 2
Fred.Wu
Frequent Advisor

Re: Fbackup/frecover question

Try to use "fbackup -i /mount1/* ..." instead of "fbackup -i /mount1 ..."
fred
Bernhard Mueller
Honored Contributor

Re: Fbackup/frecover question

Filo,

first to correct current situation:

cd /mount2/mount1
mv * ..
cd ..
rmdir mount1

to copy without that final move you could do
# cd /mount1
# ls | while read i
>do
>fbackup -i $i -f - | (cd /mount2; frecover -Xrf - )
>done
#

Regards,
Bernhard