Skip to content

Commit 8d71ba6

Browse files
author
Florian Schaal
committed
add hostname to backup-archives created by the updater
1 parent 9f7ff78 commit 8d71ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
if($do_backup == 'yes') {
191191

192192
//* Create the backup directory
193-
$backup_path = '/var/backup/ispconfig_'.@date('Y-m-d_H-i');
193+
$backup_path = '/var/backup/ispconfig_'.$conf['hostname'].'_'.@date('Y-m-d_H-i');
194194
$conf['backup_path'] = $backup_path;
195195
exec("mkdir -p $backup_path");
196196
exec("chown root:root $backup_path");

0 commit comments

Comments
 (0)