Revision of Database Purging from Thu, 10/15/2015 - 09:40

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

Nightly script to purge the dspam database of old information.

Performance Tuning

Nightly Maintenance Script

mkdir /var/dspam/sql
cp /extra/src/dspam-3.10.2/src/tools.mysql_drv/purge-4.1.sql /var/dspam/sql/

Test the script out:

/usr/local/mysql/bin/mysql -u simscan -p \
dspamdb < /var/dspam/sql/purge-4.1.sql

Create a cron task to run it nightly:

cd /etc/cron.d
echo "0 0 * * * root /usr/local/mysql/bin/mysql -u simscan -p<password> dspamdb < /var/dspam/sql/purge-4.1.sql" > dspam
touch /etc/crontab

Optimizing purge-4.1.sql

Purging a user
Script to delete dspam users

Recent Updates

  • 1 year 3 weeks ago
    1.27.2 update
  • 1 year 1 month ago
    Drupal 10/11 config
  • 1 year 1 month ago
  • PHP
    1 year 1 month ago
    PHP 8.3.11 and AlmaLinux
  • 1 year 1 month ago
    New version of Pound
Error | Production Monkeys

Error

The website encountered an unexpected error. Please try again later.