Quote:
Originally Posted by Boofo
This is the name of my back up file now:
DUMP_DATE.tar.gz
It didn't pass the date to it.
When I add back this line:
define('DUMP_DATE', $file_date);
It works right.
|
Yes, Brad.loo forgot to change the parameter in the tar-routine !
Just search for
PHP Code:
// now archive and compress the backup, also delete .sql file
exec('tar -cSz --remove-files -C' .DUMP_PATH. ' -f' .DUMP_PATH. '/' .DUMP_DATE. '.tar.gz ' .$file_date. '.sql ' .$file_date. '-error.txt');
$log_db = 'Saved backup of databse to ' . DUMP_PATH . ' at ' . $file_date . ' (file name ' . $file_date . '.tar.gz';
and replace it with:
PHP Code:
// now archive and compress the backup, also delete .sql file
exec('tar -cSz --remove-files -C' .DUMP_PATH. ' -f' .DUMP_PATH. '/' .$file_date. '.tar.gz ' .$file_date. '.sql ' .$file_date. '-error.txt');
$log_db = 'Saved backup of databse to ' . DUMP_PATH . ' at ' . $file_date . ' (file name ' . $file_date . '.tar.gz';