Commit 8ae1a805 authored by Jesse Norell's avatar Jesse Norell
Browse files

default backup exclude directories

parent 737d20c0
......@@ -1289,7 +1289,13 @@ class backup
self::prepare_backup_dir($server_id, $web_domain);
$web_backup_dir = $backup_dir . '/web' . $web_id;
$backup_excludes = array(escapeshellarg('./backup\*'));
# default exclusions
$backup_excludes = array(
escapeshellarg('./backup\*'),
'./bin', './dev', './etc', './lib', './lib32', './lib64', './opt', './sys', './usr', './var', './proc', './run', './tmp',
'./log',
);
$b_excludes = explode(',', trim($web_domain['backup_excludes']));
if (is_array($b_excludes) && !empty($b_excludes)) {
foreach ($b_excludes as $b_exclude) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment