1833934 Members
1739 Online
110063 Solutions
New Discussion

frecover questions

 
SOLVED
Go to solution

frecover questions

I used fbackup to do a full backup. Can frecover extract files based on date? I think the answer is no, but I am not sure.

The files that I need to extract are named like this- 000123, 000124, 000125. How would I define the graph file to extract a group of sequential numbers? i.e.- 000123-000163

Thanks

Yesterday was the first day of the rest of your life
6 REPLIES 6
James R. Ferguson
Acclaimed Contributor
Solution

Re: frecover questions

Hi Lawrence:

The graphs used with 'fbackup'/'frecover' only specify the names of files and directories to include and exclude. No wildcard characters or interpolation of filenames occurs.

To extract a group of sequentially numbered files, generate the graph with a script.

Regards!

...JRF...
Mridul Shrivastava
Honored Contributor

Re: frecover questions

I think its possible. Refered man pages it says:
-x The files identified by the -i, -e, and -g options are extracted or not extracted from the backup media. If a file to be extracted matches a directory whose contents have been written to the backup media, and the -h option is not specified, the directory is recursively extracted. The owner, modification time, and
access control list (including optional entries, unless the -A option is specified) are recovered. If no file argument is given (including an empty graph file), all files on the backup media are extracted, unless the -h option is specified.

-e path path is interpreted as a graph to be excluded from the recovery. There is no limit on how many times the -e option can be specified.

-g graph graph defines a graph file. Graph files are text files and contain the list of file names (graphs) to be recovered or skipped. Files are recovered using the -i option; so, for example, if the user wants to recover all of /usr, the graph file contains one entry:

i /usr
It is also possible to skip files by using the -e option.For example, if a user wants to recover all of /usr except for the subgraph /usr/lib, the graph file contains two entries:

i /usr
e /usr/lib

If the graph file is missing, frecover exits with an error message. An empty graph file results in recovering all files on the media.

-h Extract the actual directory, rather than the files that it references. This prevents hierarchical restoration of complete subtrees from the backup media.

-i path path is interpreted as a graph to be included in the recovery. There is no limit on how many times the -i option can be specified.
Time has a wonderful way of weeding out the trivial
Jacques Carriere
Regular Advisor

Re: frecover questions

Create an Index file and then restore the files you want using the -i.

#frestore -I /tmp/indexfilename -f /dev/rmt/(device) -v

You may want to use the -F option

Jacques

Re: frecover questions

Can you show me what the index file would look like? I know I could do this all in SAM. But SAM takes all of the fun out of admin tasks.

Thanks all!
Yesterday was the first day of the rest of your life
James R. Ferguson
Acclaimed Contributor

Re: frecover questions

Hi (again) Lawrence:

> Can you show me what the index file would look like?

I believe you mean a 'graph' file. Look at the manpages for 'frecover' under the '-g' option. There is an example there. You use 'i' followed by a space and a file or directory to (i)nclude. You use 'e' followed by a apace and a file or directory to (e)xclude.

When constructing your graph file you don't need to worry about the order of any entries. You could write all of your includes before your excludes or intermix them. Before a recovery actually begins, the contents of the 'graph' are sorted and evaulated to constuct the list of entities to recover.

Regards!

...JRF...

Re: frecover questions

Thanks again
Yesterday was the first day of the rest of your life