@Override
public DbDumpInfo createDump(DbDumpManager.SqlDumpableEntry entry) {
// ReleasesPlugin.RELEASE_FORMATTER.
String dbName = entry.database;
ui.info(new NoticeEventToUI("Mysql Dump", "Started mysql dump at " + $($.bear.sessionHostname)));
DateTime startedAt = new DateTime();
CommandLineResult<?> result =
$.sys.script().line().timeoutMin(24 * 60) //24h
.addRaw("mysqldump --user=%s -p %s | gzip -c >%s",
$(mysql.user), entry.database, $(plugin.dumpArchivePath)).build()
.callback(MySqlPlugin.passwordCallback($(mysql.password)))
.run();
DateTime finishedAt = new DateTime();
ui.info(new NoticeEventToUI("Mysql Dump", "Mysql dump finished in " + $($.bear.sessionHostname)));
List<DbDumpInfo> dumpInfos = Lists.newArrayList(listDumps());
DbDumpInfo dbDumpInfo = new DbDumpInfo(
$(plugin.dumpName),