diff -P -r -u -F '^function' dba_old/dba.module dba/dba.module
--- dba_old/dba.module	2007-06-24 05:41:12.000000000 +0200
+++ dba/dba.module	2007-09-23 18:10:31.000000000 +0200
@@ -328,9 +328,12 @@ function dba_settings_validate($form_id,
 
 function dba_cron() {
   if ($interval = variable_get('dba_auto_backup_interval', 0)) {
+    $time = time();
     // See if it's time for another auto-backup.
-    if ((time() - $interval) >= variable_get('dba_auto_backup_last', 0)) {
+    if (($time - $interval) >= variable_get('dba_auto_backup_last', 0)) {
       dba_auto_backup();
+      // use start time else backup will run later each time.
+      variable_set('dba_auto_backup_last', $time);
     }
   }
 }
@@ -376,7 +379,6 @@ function dba_auto_backup() {
     if ($fp = fopen($path ."/$filename", 'wb')) {
       fwrite($fp, $backup);
       fclose($fp);
-      variable_set('dba_auto_backup_last', time());
 
       // If enabled, email a copy of the backup to the site administrator.
       if (variable_get('dba_auto_backup_mail', 0)) {
