Operating System - HP-UX
1832988 Members
2720 Online
110048 Solutions
New Discussion

frecover from commandline

 
SOLVED
Go to solution
Nellian Solaiappan
Frequent Advisor

frecover from commandline

Hi All
I want to recover /etc/passwd file from my full backup tape on to a different path (for ex. /home/admin/passwd).

Would this do the trick for me?

# cd /home/admin

#frecover -f /dev/rmt/0m -x -i /etc/passwd -F

I will appreciate any help

Regards
Nell
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: frecover from commandline

Yes, that is correct. The "-F" is the most important argument to prevent the overwrite of the "real" /etc/passwd file. You might want to include "-v" for verbose and to gain some "safe" experience use the -N argument that will print the output message but not do any real extraction.

Above all. when doing anything to the passwd file, make a copy, and be logged in as root in at least two sessions so that you can get yourself out of trouble almost as fast as you got yourself in trouble.
If it ain't broke, I can fix that.
Con O'Kelly
Honored Contributor

Re: frecover from commandline

Hi Nell

I've used the "-X" (capital X) option to restore files /directories to a different location as follows:

# cd /home/admin
# frecover -x -X -v -f /dev/rmt/0m -i /etc/passwd

Cheers
Con
Nellian Solaiappan
Frequent Advisor

Re: frecover from commandline

Thanks guys for your suggestions!