Re: Archive & Delete schedule
1999-04-16 18:23:17
Or, if you want to do it as a schedule, from the administrative
client:
def sch -action=archive -options="-deletefile -su=y -archmc=MC" \
-objects="/every/raid1_disc1/archive/*" -starttime=18:00
-- Tom
On Fri, 16 Apr 1999, James Choate wrote:
>Try the following:
>
>dsmc a /every/raid1_disc1/archive/* -server=<servername>
> -archm=<managementclass> -deletefile -desc=<description
> -su=yes
>
>
>>From: "Adam C. Hegedus" <ach AT WT.ARL.PSU DOT EDU>
>>Subject: Archive & Delete schedule
>>Date: Fri, 16 Apr 1999 16:34:40 -0400
>>
>>I think that this is a simple thing to do, but I can't find anything
>>about it in the documentation. I'm trying to create a schedule that
>>will archive all the files in a directory, and then delete the
>>contents of the directory. i.e.
>>
>>I want to archive the directory: /every/raid1_disc1/archive/username/
>>and when it is done archiving, I want it to look like
>>this: /every/raid1_disc1/archive/
>>
>>I'm guessing I need to write a script to do this, but I don't know
>what the
>>commands would be.
>>
>>Thanks,
>>Adam
>>
>>
>>
>>*******************************
>>Adam C. Hegedus
>>Assistant Research Engineer
>>Computational Mechanics
>>Applied Research Lab - Water Tunnel
>>P.O. Box 30
>>State College, PA 16804
>>phone: (814) 863-6317
>>fax: (814) 865-3287
>>email: ach AT wt.arl.psu DOT edu
>
>
>_______________________________________________________________
>Get Free Email and Do More On The Web. Visit http://www.msn.com
>
|
|
|