Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
awit-dbackup
awit-dbackup
Commits
e085203a
Commit
e085203a
authored
Dec 24, 2014
by
Nigel Kukard
Browse files
Added missing $sysdir to exclude-data
parent
931af67a
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbackup
View file @
e085203a
...
...
@@ -457,15 +457,18 @@ sub backup
}
# Check if we excluding data dirs
if
(
defined
(
$config
{'
exclude-data
'}))
{
# Loop with data dirs
foreach
my
$excl
(
@defaultDataExcl
,
@
{
$config
{'
data-dir
'}})
{
# Sanitize path
my
$testPath
=
File::
Spec
->
rel2abs
("
$sysdir
/
$excl
");
# Check...
if
("
/
$path
"
eq
$testPath
)
{
printLog
(
LOG_INFO
,"
S: Path '[
$source
]/(
$path
)' is a data directory, ignoring files
\n
");
$doBackup
{
$path
}
|=
ST_DIR_SYS
;
return
();
# Loop through system dirs
foreach
my
$sysdir
(
@
{
$config
{'
system-base
'}})
{
# Loop with data dirs
foreach
my
$excl
(
@defaultDataExcl
,
@
{
$config
{'
data-dir
'}})
{
# Sanitize path
my
$testPath
=
File::
Spec
->
rel2abs
("
$sysdir
/
$excl
");
# Check...
if
("
/
$path
"
eq
$testPath
)
{
printLog
(
LOG_INFO
,"
S: Path '[
$source
]/(
$path
)' is a data directory, ignoring files
\n
");
$doBackup
{
$path
}
|=
ST_DIR_SYS
;
return
();
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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