数据库备份

This commit is contained in:
xurongyao 2018-09-18 12:22:38 +08:00
parent 10eb210d8f
commit b0469965d9

View File

@ -151,6 +151,7 @@ class Backup
$extension = strtoupper(pathinfo($file->getFilename(), PATHINFO_EXTENSION)); $extension = strtoupper(pathinfo($file->getFilename(), PATHINFO_EXTENSION));
$info['compress'] = $extension === 'SQL' ? '-' : $extension; $info['compress'] = $extension === 'SQL' ? '-' : $extension;
$info['time'] = strtotime("{$date} {$time}"); $info['time'] = strtotime("{$date} {$time}");
$info['name'] = $file->getFilename();
$list["{$date} {$time}"] = $info; $list["{$date} {$time}"] = $info;
} }
} }