From 8d71ba6bd58fb5c958b49152e87bc293192e4c2d Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Fri, 3 Nov 2017 06:58:23 +0100
Subject: [PATCH] add hostname to backup-archives created by the updater

---
 install/update.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install/update.php b/install/update.php
index cae871128b..75dede1f66 100644
--- a/install/update.php
+++ b/install/update.php
@@ -190,7 +190,7 @@ $do_backup = $inst->simple_query('Shall the script create a ISPConfig backup in
 if($do_backup == 'yes') {
 
 	//* Create the backup directory
-	$backup_path = '/var/backup/ispconfig_'.@date('Y-m-d_H-i');
+	$backup_path = '/var/backup/ispconfig_'.$conf['hostname'].'_'.@date('Y-m-d_H-i');
 	$conf['backup_path'] = $backup_path;
 	exec("mkdir -p $backup_path");
 	exec("chown root:root $backup_path");
-- 
GitLab