Skip to content

Commit 62b0c1f

Browse files
committed
manual database backups scheduled once per server
1 parent 91a7ecb commit 62b0c1f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

interface/lib/classes/plugin_backuplist.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function makeBackup(&$message, &$error, $wb)
5858
if ($tmp['number'] == 0) {
5959
if($action_type === 'backup_database') {
6060
// get all server ids of databases for this domain
61-
$sql = 'SELECT `server_id` FROM `web_database` WHERE `parent_domain_id` = ?';
61+
$sql = 'SELECT distinct(`server_id`) FROM `web_database` WHERE `parent_domain_id` = ?';
6262
$result = $app->db->query($sql, $domain_id);
6363
while(($cur = $result->get())) {
6464
$server_id = $cur['server_id'];

interface/web/sites/templates/web_backup_list.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<h3><tmpl_var name="manual_backup_title_txt"></h3>
2-
<button class="btn btn-default formbutton-default" type="button" onclick="ISPConfig.confirm_action('sites/web_vhost_domain_edit.php?id={tmpl_var name='parent_id'}&next_tab=backup&make_backup=database&','{tmpl_var name='make_backup_confirm_txt'}');">{tmpl_var name="make_backup_database_txt"}</button>
3-
<button class="btn btn-default formbutton-default" type="button" onclick="ISPConfig.confirm_action('sites/web_vhost_domain_edit.php?id={tmpl_var name='parent_id'}&next_tab=backup&make_backup=web&','{tmpl_var name='make_backup_confirm_txt'}');">{tmpl_var name="make_backup_web_txt"}</button>
2+
<button class="btn btn-default formbutton-default" type="button" onclick="ISPConfig.confirm_action('sites/web_vhost_domain_edit.php?id={tmpl_var name='parent_id'}&next_tab=backup&make_backup=database','{tmpl_var name='make_backup_confirm_txt'}');">{tmpl_var name="make_backup_database_txt"}</button>
3+
<button class="btn btn-default formbutton-default" type="button" onclick="ISPConfig.confirm_action('sites/web_vhost_domain_edit.php?id={tmpl_var name='parent_id'}&next_tab=backup&make_backup=web','{tmpl_var name='make_backup_confirm_txt'}');">{tmpl_var name="make_backup_web_txt"}</button>
44

55
<tmpl_if name="msg">
66
<br><br>

0 commit comments

Comments
 (0)