CiviCRM, civimail cron job setup

To have your mailing actually send. We have to set up a cron job that will periodically poke CiviMail to send all of the mailings that are past their scheduled date.

Actually there are so many ways out there to do this thing, and probably are shorter, but I’ve built a script for my self to do that for me and is more clear to understand.

Note: The script works only with Drupal.

1. Create a file in /usr/local/bin/ called civicrmcron.sh
    and add the following lines in it, edit the required fields and save it: Continue reading “CiviCRM, civimail cron job setup”

Database backup scripts

1. Database backup bash script
2. Perl email script
3. Cron job configuration to run the script

Here are some scripts that will help you make a database backup and than
another script that will send you an email, to confirm that the backup was made and probably if you want you can make the script send you the backup attached via email…
Then finally a cron configuration to run the database backup script everyday, week, month or once a year.

So here is the step by step tutorial…

First Lets make some directories..

1. Make a directory in /var/backups/ called sqlbackup

mkdir /var/backups/sqlbackup

Continue reading “Database backup scripts”