• Antelope Release 5.5 Mac OS X 10.8.5 2015-04-21

 

NAME

cleanup_dbdir - remove waveforms left over by previous runs of rtdbclean

SYNOPSIS

cleanup_dbdir [-v] [-n] [-d days] dbname

SUPPORT


Contributed code: NO BRTT support.
THIS PIECE OF SOFTWARE WAS CONTRIBUTED BY THE ANTELOPE USER COMMUNITY. BRTT DISCLAIMS ALL OWNERSHIP, LIABILITY, AND SUPPORT FOR THIS PIECE OF SOFTWARE.

FOR HELP WITH THIS PIECE OF SOFTWARE, PLEASE CONTACT THE CONTRIBUTING AUTHOR.

DESCRIPTION

cleanup_dbdir removes old waveforms that are not referenced in the wfdisc table. It is a good idea to run the program periodically as a cron job if you have half-emptied directories with waveforms.

EXAMPLE

The following entry in rtexec.pf removes all wafevorms (and empty directories) taht are not referenced in $DB.wfdisc, but leaves 2 days worth of data before the oldest entry in the table.
cleanup_dbdir UTC 0 0 * * * cleanup_dbdir -v -d 2 $DB

BUGS AND CAVEATS

The program uses dbquery(dbTABLE_DIRMANE) to find out where waveforms could be and removes starting there all unreferenced files and directories. Make sure that you have no other files there! You should try the program first with the -n flag (and check the output for suspicious entries) before installing it as a cronjob.

SEE ALSO

rtdbclean(1), dbconstants(5) for an explanation of dbTABLE_DIRNAME

AUTHOR

Nikolaus Horn, 2001

ZAMG / Vienna, Nikolaus.Horn@zamg.ac.at



Antelope User Group Contributed Software
Printer icon