|
@@ 157-166 (lines=10) @@
|
| 154 |
|
|
| 155 |
|
define("XCLONER_STORAGE_PATH", realpath($backup_storage_path)); |
| 156 |
|
|
| 157 |
|
if(!is_dir($backup_storage_path)) |
| 158 |
|
{ |
| 159 |
|
if(!@mkdir($backup_storage_path)) |
| 160 |
|
{ |
| 161 |
|
$status = "error"; |
| 162 |
|
$message = sprintf(__("Unable to create the Backup Storage Location Folder %s . Please fix this before starting the backup process."), $backup_storage_path); |
| 163 |
|
$this->trigger_message($message, $status, $backup_storage_path); |
| 164 |
|
return; |
| 165 |
|
} |
| 166 |
|
} |
| 167 |
|
if(!is_writable($backup_storage_path)) |
| 168 |
|
{ |
| 169 |
|
$status = "error"; |
|
@@ 167-174 (lines=8) @@
|
| 164 |
|
return; |
| 165 |
|
} |
| 166 |
|
} |
| 167 |
|
if(!is_writable($backup_storage_path)) |
| 168 |
|
{ |
| 169 |
|
$status = "error"; |
| 170 |
|
$message = sprintf(__("Unable to write to the Backup Storage Location Folder %s . Please fix this before starting the backup process."), $backup_storage_path); |
| 171 |
|
$this->trigger_message($message, $status, $backup_storage_path); |
| 172 |
|
|
| 173 |
|
return; |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
} |
| 177 |
|
|