Cron Jobs

What are Cron Jobs?
Cron jobs are automated tasks. On Windows servers it is the Task Scheduler. There is one file in Maian Affiliate that should be set up to run as a cron job. This is detailed below.
Database Backup
In your admin control panel you have the option to download a backup schema. Backups are important, so this cron takes care of the backups automatically. Backups are emailed to the system admin addresses. If you prefer to suppress the emails and just have the backups saved to the server (admin/backups), you can deactivate the emails via the 'CRON_BACKUP_EMAIL' constant in the 'control/options.php' file.

The file to run is:

control/cron/backup.php

You should set this cron to run once a day. A better way of backing up your databases automatically is by backing up to a remote server using Rsync. More info here.
Cron Job Example Commands
Examples of cron tab commands. These may or may not work, you should contact your host if you aren't sure. Make sure you use the correct path.

Linux

/usr/local/bin/php /home/admin/domains/example.com/public_html/affiliate/control/cron/backup.php
php q /home/admin/domains/example.com/public_html/affiliate/control/cron/backup.php
/usr/local/bin/php q /home/admin/domains/example.com/public_html/affiliate/control/cron/backup.php

Windows

C:\Windows\php\php.exe "C:\server\www\affiliate\control\cron\backup.php"
If you don't understand this, contact your host for assistance. Path is almost always the FULL server path to the cron file.