restore with filelist not working

influx

Active Newcomer
Joined
Jun 5, 2007
Messages
258
Reaction score
0
Points
0
Could someone advise if the syntax of the below command is correct. The file exists and the tsmadm is the owner of the file... is it a syntax error?

RESTORE NODE NASNODE2 /vol/USERS03 /restore.11.24.14.48.40
filelist=FILE:/export/data/tsmadm/restore.group.list.out pitd=11/08/2008 pitt=23:59:59 wait=yes
ANR2488W List file /export/data/tsmadm/restore.group.list.out could not be opened.

ls -lart restore.group.list.out
-rw-r----- 1 tsmadm tsmadm 285 Nov 24 15:19 restore.group.list.out


Any ideas?
 
Mikeymac,

Good idea... I did that... same exact error. I'm pulling my hair out on this one. Not even sure how to pursue at this point.
 
I believe the "FILE:" is wrong. Just filelist=/path/to/file should do it.

PJ
 
I believe the "FILE:" is wrong. Just filelist=/path/to/file should do it.

PJ

FILELIST=FILE:/path_to_file/file_list

is correct.

If you do this: FILELIST=file_name<case_sensitive!> you restore only one file unless you do:

FILELIST=file_name1<case_sensitive!>,file_name2<case_sensitive!>,file_name3<case_sensitive!>,


To quote TSM help:

FILELIST
Specifies the list of file or directory names to be restored. This
parameter is optional. The default is to restore the entire file
system. If this value is specified, the server attempts to restore the
objects from the appropriate image. If the PITDATE and PITTIME
parameters are specified, then the file is restored from the last
backup image prior to the specified time. If no PITDATE and PITTIME
parameters are specified, the file is restored from the latest backup
image of the file system.

If the image is a differential backup, objects are first restored from
the corresponding full backup and then from the differential backup.
The restore is done by scanning the appropriate images for the
specified objects and restoring any that are found. The TOCs for these
images will not be accessed, so the IBM Tivoli Storage Manager server
does not check whether the objects are actually contained within the
images.
file_name
Specifies one or more file or directory names to be restored. The
names you specify cannot contain wildcards. Multiple names must be
separated with commas and no intervening blanks.
FILE:file_list
Specifies the name of a file that contains a list of the file or
directory names to be restored. In the specified file, each file
or directory name must be on a separate line. Blank lines and
comment lines that begin with an asterisk are ignored. For
example:

To restore files FILE01,FILE02,FILE03, create a file named
RESTORELIST that contains these lines.

You can specify the files to be restored with the command as
follows:

FILELIST=FILE:RESTORELIST

Note:
The file name is case-sensitive.
 
Last edited:
Sorry - I didn't see this was a NAS node. One of these days I'll learn reading... promise. ;)

PJ
 
Last edited:
Problem solved... syntax fine... bad environment variable being passed in script. Thanks for the recommendations.
 
Back
Top