Skip to main content

pruning eximstats sqlite

Comments

3 comments

  • cPanelNick

    /usr/local/cpanel/3rdparty/bin/perl -MCpanel::EximStats::DB::Sqlite -e 'Cpanel::EximStats::DB::Sqlite->dbconnect()->do("VACUUM;");'
    This should do what you need.
    0
  • Philip R.
    Hi cPanelNick, and thank you for your reply! I'm trying this presently. I will update again once it is done. It has been running for about 15 minutes now.
    0
  • Philip R.
    Update - I couldn't Vacuum the database because of the lack of space on the disk. After many hours now of trying to find an appropriate way via sqlite3 to change the temporary file path See SQLite3 Vacuum Documentation that vacuum uses during it's operation, and a few grey hairs later, I just moved the database file, restarted exim, and restarted tailwatchd. A new small sqlite db was generated, and my precious space has been freed once again. No changes to pragma in SQlite3 seemed to make any difference where vacuum was eating up space. So much for playing by the book I guess.
    0

Please sign in to leave a comment.