Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
80262299
Commit
80262299
authored
Sep 10, 2014
by
Till Brehm
Browse files
Added backup mount script to backup plugin.
parent
6f03cca3
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/backup_plugin.inc.php
View file @
80262299
...
...
@@ -72,6 +72,7 @@ class backup_plugin {
$backup_dir
=
$server_config
[
'backup_dir'
]
.
'/web'
.
$web
[
'domain_id'
];
//* mount backup directory, if necessary
/*
$backup_dir_is_ready = true;
$server_config['backup_dir_mount_cmd'] = trim($server_config['backup_dir_mount_cmd']);
if($server_config['backup_dir_is_mount'] == 'y' && $server_config['backup_dir_mount_cmd'] != ''){
...
...
@@ -80,6 +81,19 @@ class backup_plugin {
sleep(1);
if(!$app->system->is_mounted($server_config['backup_dir'])) $backup_dir_is_ready = false;
}
}*/
$backup_dir_is_ready
=
true
;
$backup_dir_mount_cmd
=
'/usr/local/ispconfig/server/scripts/backup_dir_mount.sh'
;
if
(
$server_config
[
'backup_dir_is_mount'
]
==
'y'
&&
is_file
(
$backup_dir_mount_cmd
)
&&
is_executable
(
$backup_dir_mount_cmd
)
&&
fileowner
(
$backup_dir_mount_cmd
)
===
0
){
if
(
!
$app
->
system
->
is_mounted
(
$backup_dir
)){
exec
(
$backup_dir_mount_cmd
);
sleep
(
1
);
if
(
!
$app
->
system
->
is_mounted
(
$server_config
[
'backup_dir'
]))
$backup_dir_is_ready
=
false
;
}
}
if
(
$backup_dir_is_ready
){
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment