1821808 Members
3381 Online
109638 Solutions
New Discussion юеВ

frecover

 
M.M. Oee
Contributor

frecover

How to restore a file/directory from a tape to a new path/directory using frecover without overwritting the existing file?

Thanks
5 REPLIES 5
Thierry Poels_1
Honored Contributor

Re: frecover

Hi,

cd /newdir
frecover -xvF -f /dev/rmt/0m -i /origdir/yourfile

-F : skip directory structure; result: /newdir/yourfile.


or

cd /newdir
frecover -xvX -f /dev/rmt/0m -i /origdir/yourfile

-X : relative to current dir; result: /newdir/origdir/yourfile


best regards,
Thierry Poels.
All unix flavours are exactly the same . . . . . . . . . . for end users anyway.
Steve Steel
Honored Contributor

Re: frecover

Hi

he is correct .


It may be nice to recover relative somewhere in a directory like /tmp/local.
To restore relative, you must go first to the directory with cd, and then
use the X or F option.

cd /tmp/local; /etc/frecover -xvXi /directory
(with directory tree path )
cd /tmp/local; /etc/frecover -xvFi /directory
(without path, only files names)


steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Dario_1
Trusted Contributor

Re: frecover

Hi!

Make sure you cd to the a temporary directory and use the -X when using the frecover command.

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

Regards,

DR
CCIL
Frequent Advisor

Re: frecover

The best option is to use "sam"
Amit Vichare
Zafar A. Mohammed_1
Trusted Contributor

Re: frecover