I cannot get past this error,

backup_database(): Renaming file '/tmp/drupal-backup-db-oF0cS9' to 'drupal-backup-db-20070825205019-654014176.sql.gz' failed

$ ls -als /tmp/drupal-backup-*
88 -rw------- 1 httpd wheel 43707 Aug 25 20:50 /tmp/drupal-backup-db-oF0cS9

Drupal's root directory: /hsphere/local/home/x51/ynot
Backup location: /hsphere/local/home/x51/backup
Backup location permissions: 777

System Path:
* /sbin: /bin: /usr/sbin: /usr/bin: /usr/games: /usr/local/sbin: /usr/local/bin: /usr/X11R6/bin: /home/dlac/bin

Programs that will be used:
* mysqldump program found at: /usr/local/bin/mysqldump
* tar program found at: /usr/bin/tar
* gzip program found at: /usr/bin/gzip

Capture errors from backup run? [unchecked]
Backup from parent directory? [unchecked]

Comments

waddles’s picture

Seems somebody forgot to add the prefix code to the mysql dump. Just add it as below

    //
    // The name of our final db file.
    // This includes a random number to keep attackers from guessing
    // the filename.
    //
    $db_file = "drupal-backup-db-" . $date_string
        . "-" . mt_rand(0, 999999999) . ".sql.gz";

    //
    // Pre-pend our prefix if it's present.
    //
    if (!empty($prefix_dir)) {
        $db_file = $prefix_dir . "/" . $db_file;
    }
niklp’s picture

I think this is fixed in 4.x - I had this problem with 3 but now not with 4...