`fs sa $dump_path/$owner/ system:sql-backup none`;
}
$exec = sprintf($dump_exec, $name, $owner.'/'.$name);
-/*
- if ($owner != 'root' && file_exists("$dump_path/$owner/$name.sql.gz")) {
- if (!BACKUP_CRON)
- printf("Saving old dump file: %s\n",
- "$dump_path/$owner/$name.sql.gz");
- rename("$dump_path/$owner/$name.sql.gz", "$dump_path/OLD/$name.sql.gz");
- }
-*/
if (!BACKUP_CRON)
printf("Dumping %d of %d / %d%% (%s):\n",
$i_database,
$stat['nDatabases'],
$i_database/$stat['nDatabases']*100,
$name);
- //printf("Executing $exec\n");
$time[$name][0] = microtime(true);
$dump_proc = popen($exec, 'r');