I have been using the recover command to browse for some files and was wondering if there was a way for the files to be read/copied to a text file.
For instance when I navigate to desired directory and us the command ls -l to list files sorted by their date of creation; would it be possible to just copy these files names to a text file?
I don't want to restore/recover them but just write the file names to a text file. It doesn't the recover commands has any sub-commands that enable this hence I am looking for another command that would enable me to browse recovered content and manipulate it as described.
Thanks in advance,
You could also use nsrinfo with any appropriate flags. See page 197 of the Command Guide. This might be a better option:
NAME: nsrinfo – NetWorker file index reporting command
nsrinfo [ –vV ] [ – s server ú –L ] [ –n namespace ] [ –N filename ] [ – t time ] [ –X application
– x exportspec ] client
The nsrinfo command generates reports about the contents of a client file index.
Given a required NetWorker client name and no options,
nsrinfo will produce a report
of all files and objects, one per line, in the
backup name space for that client. It can also
generate reports as follows: for a specific file index name space, for all name spaces at
once, or for a particular XBSA application. Reports can also be restricted to a single
time (the time at which the entry was entered into the file index, called the
For example, to generate a report of all files backed up in the most recent backup of
/usr file system for the client mars, use the following sequence of commands
% character is the shell prompt):
– r nsavetime – v – N /usr – c mars – ot ú tail – 1
– t 809753754 mars
Note: The time used in the query is obtained by running the
with a custom report to print the save time for the most recent save set for
time printed is passed to
nsrinfo along with the name of the client (mars).
– v Verbose mode. In addition to the filename, it prints the type of the file, the
internal file index identifier (if any), the size (if a UNIX file), and the savetime.
This option may be combined with the
V Alternate verbose mode. In addition to the filename, it prints the offset within
the save set containing the file, the size within the save set, the application
name space (see the
–n option for a list of values), and the save time. This
option may be combined with the
– v option.
Indicates the name of the NetWorker system to be queried. By default, the
server on the local system is queried.
L Opens a file index directly without using the server. This option is used for
debugging, or to query the file index while NetWorker is not running.
Indicates the file index name space to query. By default the
backup name space
is used. The other recognized values are:
migrated, archive, nsr (for internal
informix (for INFORMIX data), sybase (for Sybase data), msexch (for
mssql (for SQL Server data), notes (for Lotus Notes data), db2
(for DB/2 data),
oracle (for Oracle data), and all. The name space field is case
Indicates an exact filename to look for in the file index. Only index entries
matching this name exactly print. Note that for some clients, such as NetWare,
the name stored in the file index is often not made up of printable ASCII characters,
giving this option limited use.
t time Restricts the query to a single, exact save time. The time can be in any of the
nsr_getdate(3) formats. Every save set created by NetWorker has a
unique save time; these times can be determined by using the
Restricts the query to list information for only a specific X/Open Backup
NetWorker 7.6 197
Maintenance Commands nsrinfo ( 1m )
Services (XBSA) application. Valid application types are
All, Informix, and
The application type is not case sensitive. See the APPLICATION
TYPES section of this man page for more information.
As an alternative to the default human-readable output format,
for two styles of program-readable output formats. The
displays XML output, while
exportspec ‘c<separator>’ displays values separated
by any single character or string. For example,
‘nsrinfo – xc,’ will produce
Many Thanks AllanW.
Unfortunately I couldn't get that to work...would it be possible to query the file names if I know on which disk they're on (backup disk on which they have been backed up to)? And possible publish/write them to a text file?
Thanks in advance for your assistance.
Sorry for the late reply. It did work but in the end I decided to use the recover command with a bunch of parameters including a file where I had set all the directories I wanted to recover from.
recover -f -i "C:\to_recover.txt" -d "c:\destinationfolder" -c myclient -a
Thanks for your advice, it pointed me in the right direction.