function dba_cron in Database Administration 5
File
- ./
dba.module, line 330 - Allows administrators direct access to their Drupal database. Written by Jeremy Andrews <jeremy@kerneltrap.org>, June 2004. PostgreSQL functionality provided by AAM <aam@ugpl.de> Major security audit, porting, and maintenance by Derek…
Code
function dba_cron() {
if ($interval = variable_get('dba_auto_backup_interval', 0)) {
// See if it's time for another auto-backup.
if (time() - $interval >= variable_get('dba_auto_backup_last', 0)) {
dba_auto_backup();
}
}
}