[osiris-devel] Old database removal script - see attacment (Script is 'BETA' grade, tested on 1 server only)
Alexei Roudnev
Alexei_Roudnev at exigengroup.com
Wed Jun 9 23:05:12 EDT 2004
See attachment. I run this script daily, removing old databases and sticked temporary files.
Script removes data base, if:
- it was not changed during last N (default 3) days
AND
- next database was not changed during last N (default 3) days
AND
- it is not one of last M (default - 4) databases.
Do not run it, if you archive databases. Of course, expiration should be (better) implemented in the osirismd itself.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/osiris-devel/attachments/20040609/aa552491/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: daily.bat
Type: application/octet-stream
Size: 109 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/osiris-devel/attachments/20040609/aa552491/attachment.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osiris_clean.pl
Type: application/x-perl
Size: 5648 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/osiris-devel/attachments/20040609/aa552491/attachment.bin
More information about the osiris-devel
mailing list