ADSM-L

Re: Scripting Delete files after Archive by a Relative Date

2004-05-27 12:30:11
Subject: Re: Scripting Delete files after Archive by a Relative Date
From: Renee Davis <rdavis AT UH DOT EDU>
To: ADSM-L AT VM.MARIST DOT EDU
Date: Thu, 27 May 2004 11:29:07 -0500
Thanks Steve for your suggestion. Just for my own information though, does
the -fromdate option take relative dates like -fromdate=today-3?





On 5/23/04 6:02 PM, "Steve Harris" <Steve_Harris AT HEALTH.QLD.GOV DOT AU> 
wrote:

> Renee,
>
> Provided that you have a recent version  of the client, you can pass a list of
> files to it with -filelist
>
> Just use the appropriate find command for your OS to create the list before
> invoking dsmc.
>
> eg for unix
>
> find /foo/bar -name '*.frobz" -mtime +5 -path > /tmp/backup$$
> dsmc arch -<other options as necessary> -deletefiles -filelist /tmp/backup$$
> rm /tmp/backup$$
>
> HTH
>
> Steve Harris
> AIX and TSM Admin
> Queensland Health, Brisbane Australia
>
>
>>>> rdavis AT UH DOT EDU 21/05/2004 6:39:06 >>>
> I have a user that wishes to run a batch job that archives a certain
> directory and deletes the files afterwards. In selecting the files to be
> archived and deleted, he wants to use  a relative date  (like -deletefile
> -fromdate=today-5) since this is a script and he does not wish to have to
> modify the date every time. Any ideas how to accomplish this would be
> helpful and also, does anyone know if the -fromdate -todate options accept
> relative dates?
> --
> Renee Davis
> University of Houston
>
>
>
> ******************************************************************************
> *****
> This email, including any attachments sent with it, is confidential and for
> the sole use of the intended recipient(s).  This confidentiality is not waived
> or lost, if you receive it and you are not the intended recipient(s), or if it
> is transmitted/received in error.
>
> Any unauthorised use, alteration, disclosure, distribution or review of this
> email is prohibited.  It may be subject to a statutory duty of confidentiality
> if it relates to health service matters.
>
> If you are not the intended recipient(s), or if you have received this email
> in error, you are asked to immediately notify the sender by telephone or by
> return email.  You should also delete this email and destroy any hard copies
> produced.
> ******************************************************************************
> *****

<Prev in Thread] Current Thread [Next in Thread>