I use this command to learn from spam in a folder on a virtual mail box. sa-learn –spam /var/spool/postfix/virtual/DomainName.com/emailaddress/.Possible_Spam/cur/* –showdots This then runs on a Cron Tab each day. Care must be taken that no non-spam messages are added to this folder, so only use this with users you trust. I am working on a …
Tag Archive: cron
Oct
27
Backing Up Mysql Databases On A Cron
With all the websites that I run, keeping backups is essentail. I first wrote a bash script that I ran on a cron job whcih backed up each database and then zipped the sql file up: #!/bin/sh mysqldump -uroot -ppwd –opt db1 > /sqldata/db1.sql mysqldump -uroot -ppwd –opt db2 > /sqldata/db2.sql cd /sqldata/ tar -zcvf …






