Article delegate-en/3007 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: news proxy expire - how ?
09 Jul 2005 19:39:58 GMT (Yutaka Sato)
The DeleGate Project

On 07/07/05(03:20) you "damir" <damir@wisp-hr..> wrote
in <_A3000@delegate-en.ML_>
 |I was install delegate for nt with folowing options:
 |dg.exe -P119 SERVER=nntp EXPIRE0d CRON="0 * * * * -expire 30d" MOUNT="nntp://" CACHE=do DGROOT="D:\"
 |Well everything is fine , but now my disk is full (80 gb) and delegate stop
 |to work ... then I must delete some files under cashe directories manualy
 |and restar delegate ... then everything is fine till next time ...
 |I was watch expire log and there is no evidence that delegate delete old
 |files ...
 |Does delegate delete files older than EXPIRE parameter (30 days) , or I must
 |do this manualy?

The argument "-atime 30d" in the log means "not accessed (just) for 30days",
that is, the "last access date" of a file is just 30days old.
If this expire is done every day, there should be no file of which
"last access date" is older than 30days.  But if it is not the case,
or if you shortened the expire period, files older than 30days will
be left without expired.

Thus specify as "-expire +30" to indicate "not accessed for 30days or more".

 |Here is log:
 |2005/00/00-00:00:0X [18036] D:\/ -rm -atime
 |30d -sum
 |2005/00/00-00:00:0X [18036] D:\/ 138687808 blk,
 |724 dir, 155850 reg, 0 rem (0 blk), 0 err, 30 sec
 |Line  0 rem (0 blk),  says that is 0 files removed?
 |Maybe I install with wrong parameters? If is true how to do right install?

The reference manual says that "-expire 3" means "-atime +3", but the
implementation has not been consistent with it.  So I'll fix it as
the enclosed patch.

  D G   Yutaka Sato <>
 ( - )  National Institute of Advanced Industrial Science and Technology
_<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
Do the more with the less -- B. Fuller

*** ../delegate9.0.3-pre28/src/croncom.c	Wed Dec  8 16:59:35 2004
--- src/croncom.c	Sun Jul 10 04:35:31 2005
*** 153,158 ****
--- 153,161 ----
  		if( env = DELEGATE_getEnv(P_EXPIRE) )
  		else	strcpy(period,"+7d");
+ 		if( *period != '+' ){
+ 			Strins(AVStr(period),"+");
+ 		}
  		ac = 0;
  		av[ac++] = "-Fexpire";

  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]