Subject: | |
From: | |
Reply To: | Keven Miller (rtt) |
Date: | Wed, 11 Jul 2007 11:24:40 -0600 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Jeff Kell wrote:
> Quick question....
>
> Would like to do a ":store ... ;date<=[30-days-ago]" in an automated fashion.
> I can picture a complicated/convoluted method of HPDAY/HPMONTH/HPYEAR
> manipulation with lots of IFs, but is there a more straightforward way?
Not a back-30-day solution, but...
In my FULLBACK job I have these lines
...
!SETVAR FBDATE "!HPMONTH"+RHT("0!HPDATE",2)+RHT("0!HPYEAR",2)
... do store ...
!PURGE FULLBACK.LOG.XSI
!BUILD FULLBACK.LOG.XSI;DISC=!FBDATE
...
Then in my PARTBACK job, I use the createdate of the FULLBACK.LOB file.
...
!SETVAR FBDATE FINFO ( "FULLBACK.LOG.XSI", "INTCREATED" )
!SETVAR FBDATE "!FBDATE"
!SETVAR FBDATE STR (FBDATE,5,2)+"/"+STR(FBDATE,7,2)+"/"+LFT(FBDATE,4)
...
!STORE ^BACK;*PARTBACK;SHOW=OFFLINE;DIRECTORY;ONERR=QUIT &
! ;DATE>=!FBDATE!OTHER_OPTIONS
...
This way my partials should be from that last full backup.
Keven
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|