Backup /usr on AIX

TomasR

Active Newcomer
Joined
Oct 8, 2009
Messages
11
Reaction score
0
Points
0
Location
Lithuania, Vilnius
Hello,
The system is AIX 6.1
TSM client version - 5.5.0
Trying to backup files in /usr from command line:
dsmc selective /usr/* -subdir=yes and getting error message:
ANS1102E An excessive number of command line arguments are passed to the program.
ANS1133W An expression might contain a wildcard not enclosed in quotes.

OK. When command is modified (removed asterisk):
dsmc selective /usr/ -subdir=yes it works.

But I can backup other filesystems in such way - for example:
dsmc selective /opt/* -subdir=yes

Can anybody explain what special is in /usr filesystem?...
 
You might try /usr/.../* That should remove the need to specify "-subdir"

-Aaron
 
Another possibility is to use double quotes i.e.: dsmc selective "/usr/*" -subdir=yes

Regards. Wim.
 
Hi
I don't know why /opt/* works.

For backup full file system we use FS name with / : dsmc sel /usr/ -subdir=yes
for backup directory we can use asterisk for backup all files. dsmc sel /opt/ttt/* -subdir=yes
I think the right way is using right command syntax.

heada: I can't test now but I think you can use /.../ only in include/exclude list. In dsmc you can use only wildcard characters (asterisk and question mark).

Efim
 
heada: I can't test now but I think you can use /.../ only in include/exclude list. In dsmc you can use only wildcard characters (asterisk and question mark).

Efim

You're right. I spent all morning editing include/exclude lists and had that on the brain.

-Aaron
 
Hello,
The system is AIX 6.1
TSM client version - 5.5.0
Trying to backup files in /usr from command line:
dsmc selective /usr/* -subdir=yes and getting error message:
ANS1102E An excessive number of command line arguments are passed to the program.
ANS1133W An expression might contain a wildcard not enclosed in quotes.

OK. When command is modified (removed asterisk):
dsmc selective /usr/ -subdir=yes it works.

But I can backup other filesystems in such way - for example:
dsmc selective /opt/* -subdir=yes

Can anybody explain what special is in /usr filesystem?...

The error mesages are very clear. There are two many arguments. As the asterisk (*) is note quoted, it's interpreted by the shell, and not by TSM. So, the shell transmit too many arguments to dsmc (20 max by default). Just count the number of file and directories in the /usr and /opt (not recursively). Or test with ls /usr/* and ls /opt/*. There are much less in /opt, aren't they ? That's the reason why you must quote the joker characters.

See help message for ANS1102E :
This command processing routine received more operands than it can use. The rules are:

* Query can contain only one file specification.
* Restore and Retrieve can contain two file specifications.
* Archive, Incremental, and Selective can contain a maximum of 20 file specifications. To bypass the 20-operand limit, use the -REMOVEOPERANDLIMIT option on the failing archive, incremental, or selective command.

Note: The TSM Client operates much more efficiently if it expands wild cards internally, rather than accepting the expanded list from the shell.

Regards,
Erwann
 
Hi,
Thanks for the answers.
I see where was the problem. Now backup script is corrected and works fine.
But it is still interesting - why other filesystem backup's works in that way???
for example /home/*, /opt/*
 
Back
Top