ADSM-L

dsmc command line

1998-05-13 12:33:20
Subject: dsmc command line
From: Ann Foster <afoster AT SEAHAWK.NSCC.MASS DOT EDU>
Date: Wed, 13 May 1998 12:33:20 -0400
Thanks so much for your responses to the following problem:


> Hello,
>         I especially like the way the backup/archive client retrieval
groups >all files in one tree, so I am trying to archive related files with
one >command.
> With: dsmc archive dsmc archive -archmc=DBASE -password=dorc /*/DARC*/*
> Command works fine - 20 files are archived
>
> With: dsmc archive -archmc=DBASE -password=dorc /*/TEST*/*
> Error: Too many arguments passed to command. This expands to about 34 files.
>
> Apparently, there is an argument limit to dsmc. Does anyone know a way
> around this, so that I can execute the dsmc command for all the /*/TEST*/*
> files?
>

One suggestion to solve the problem:

Enclose /*/TEST*/* in quotes i.e. "/*/TEST*/*"

did not work. Although it works for variations of the above - it did not
work for my specific path (fiqures).
Thanks anyway!

BUT?because I am running ADSM V 3.1.02 on a REAL operating system - Unix,
AIX 4.1.5 to be exact, the suggestion:

find . -name /\*/TEST\*/\* -print  | xargs dsmc archive -archmc=DBASE
-password=dorc
put me on the right track. I had to manipulate it as follows:
put me on the right track. I had to manipulate it as follows:

find /*/TEST*/ -name '*' |xargs -n20 dsmc archive -archmc=DBASE -password=dorc

I have been monitoring the files archived for about a week. The above
command generically gets all the files I need it to. It still does not get
all the files in one swoop. It breaks them into three groups - that?s OK, I
can live with that. The -n20 seems to be the magic number to use. Using any
number higher returned an error.


Thanks Again for all your help!
> Ann Foster
> North Shore Community College
> Phone: 978.762.4000 ext. 4346
> email: afoster AT nscc.mass DOT edu
<Prev in Thread] Current Thread [Next in Thread>
  • dsmc command line, Ann Foster <=