Results 1 to 7 of 7
Thread: Backup /usr on AIX
-
11-05-2009, 11:02 AM #1Newcomer
- Join Date
- Oct 2009
- Location
- Lithuania, Vilnius
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Backup /usr on AIX
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?...
-
11-05-2009, 12:19 PM #2Moderator
- Join Date
- Sep 2002
- Location
- Indiana
- Posts
- 2,560
- Thanks
- 0
- Thanked 1 Time in 1 Post
You might try /usr/.../* That should remove the need to specify "-subdir"
-AaronThree things are certain:
Death, taxes, and lost data.
Guess which has occurred.
-
11-05-2009, 03:12 PM #3Senior Member
- Join Date
- Aug 2007
- Posts
- 208
- Thanks
- 0
- Thanked 0 Times in 0 Posts
Another possibility is to use double quotes i.e.: dsmc selective "/usr/*" -subdir=yes
Regards. Wim.
-
11-05-2009, 03:55 PM #4Senior Member
- Join Date
- Jun 2006
- Posts
- 544
- Thanks
- 0
- Thanked 13 Times in 12 Posts
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
-
11-05-2009, 04:30 PM #5Moderator
- Join Date
- Sep 2002
- Location
- Indiana
- Posts
- 2,560
- Thanks
- 0
- Thanked 1 Time in 1 Post
-
11-06-2009, 03:47 AM #6Member
- Join Date
- Mar 2006
- Location
- France
- Posts
- 95
- Thanks
- 0
- Thanked 0 Times in 0 Posts
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
-
11-06-2009, 08:58 AM #7Newcomer
- Join Date
- Oct 2009
- Location
- Lithuania, Vilnius
- Posts
- 11
- Thanks
- 0
- Thanked 0 Times in 0 Posts
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/*
Similar Threads
-
ANS1999E Incremental processing of '/usr' stopped
By benmartins in forum Backup / Archive DiscussionReplies: 3Last Post: 10-02-2007, 06:27 PM -
<< Message number 1182 not available for language /USR/LIB/NLS/MSG/EN_US/ >>
By texmutt in forum TSM ServerReplies: 0Last Post: 07-20-2007, 05:17 PM -
HSM and an AIX upgrade AIX 4.3.3ML11 -> AIX 5.2.02
By schumi in forum Hierarchical Storage ManagementReplies: 3Last Post: 08-23-2006, 11:38 AM -
St. Bernard software for usr MS-Access Data bases
By pegasus in forum LicensingReplies: 0Last Post: 04-04-2006, 01:16 PM -
MUST RESTORE /usr - Need Your Help
By jvazquez in forum Backup / Archive DiscussionReplies: 0Last Post: 04-30-2004, 11:32 AM


Reply With Quote
