Am 04.10.2010 13:26, schrieb Dave Howorth:
> Rolf-Werner Eilert wrote:
>> I like the idea with the script, too. However, you would have to fiddle
>> around the mbox file... Or does dirvish-expire write the output into
>> some temp-file? Didn't find any hint in the code about this, but again,
>> I don't know much about Perl.
>
> In my setup dirvish-expire is run by cron. It just prints the output to
> its standard output and cron arranges for that to be mailed to me. So if
> I wanted to post-process the output, I would pipe the output from
> dirvish-expire into my postprocessor within the crontab line. The
> postprocessor would be written as a 'filter' process, reading from
> standard input and writing to standard output.

Yep, yep... yes! :-)

>
> I guess other people's setups work the same way, but I don't know for sure.
>

Yes, this is the way they do it, it's a good idea I think, but with "20" 
for the first value in the two lines it's running ok now:

Expiring images as of 2010-10-05 21:00:01

VAULT:BRANCH         IMAGE           CREATED           EXPIRED
backup-home:default  20100920-2134   2010-09-20 22:13  +6 days == 
2010-09-26 21:34
backup-klein:default 20100920-2224   2010-09-20 22:24  +6 days == 
2010-09-26 22:24
backup-opt:default   20100920-2224   2010-09-20 22:25  +6 days == 
2010-09-26 22:24
backup-root:default  20100920-2225   2010-09-20 22:26  +6 days == 
2010-09-26 22:25
backup-usr:default   20100920-2226   2010-09-20 22:28  +6 days == 
2010-09-26 22:26
backup-var:default   20100920-2228   2010-09-20 22:29  +6 days == 
2010-09-26 22:28
21:09:32 dirvish --vault backup-home
21:55:16 dirvish --vault backup-klein
21:55:25 dirvish --vault backup-opt
21:56:14 dirvish --vault backup-root
21:57:28 dirvish --vault backup-usr
21:59:34 dirvish --vault backup-var
21:59:47 done


So the simple solution already helped here, but I'll keep your idea in 
mind, especially as I'm planning to set up a new server and might need 
it again there. Maybe I can find a solution that helps everyone and can 
be of use for other people, too.

Thanks for your help :-)

Rolf
_______________________________________________
Dirvish mailing list
[email protected]
http://www.dirvish.org/mailman/listinfo/dirvish

Reply via email to