数据库备份

This commit is contained in:
sugar1569 2018-09-26 10:03:17 +08:00
parent 7d587f81a7
commit fbb1e41ff7

View File

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