From e089f4428f2ca3b09cd89cb47c0dd8d51b075f33 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 18 Feb 2019 13:41:42 +0100 Subject: [PATCH] show how long the backup took --- setup/db_backup.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup/db_backup.php b/setup/db_backup.php index 4dfd303229..291530e38f 100644 --- a/setup/db_backup.php +++ b/setup/db_backup.php @@ -123,11 +123,12 @@ if($_POST['backup']) { if (is_resource($f = $db_backup->fopen_backup())) { - echo '

'.lang('backup started, this might take a few minutes ...')."

\n".str_repeat(' ',4096); + echo '

'.lang('backup started, this might take a few minutes ...')."

\n"; + $starttime = microtime(true); $db_backup->backup($f); if(is_resource($f)) fclose($f); - $setup_tpl->set_var('error_msg',lang('backup finished')); + $setup_tpl->set_var('error_msg', lang('backup finished').': '. number_format(microtime(true)-$starttime, 1).'s'); /* Remove old backups. */ $cleaned_files = array();