Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
12de5436
Commit
12de5436
authored
Nov 10, 2010
by
Andreas Kusalananda Kähäri
Browse files
Take partitioned tables into account when including or excluding tables
to copy.
parent
8aa22758
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
misc-scripts/CopyDBoverServer.pl
misc-scripts/CopyDBoverServer.pl
+14
-0
No files found.
misc-scripts/CopyDBoverServer.pl
View file @
12de5436
...
...
@@ -543,15 +543,29 @@ foreach my $spec (@todo) {
if
(
defined
(
$opt_only_tables
)
)
{
push
(
@copy_cmd
,
'
--include=db.opt
'
);
push
(
@copy_cmd
,
map
{
sprintf
(
'
--include=%s.*
',
$_
)
}
keys
(
%only_tables
)
);
# Partitioned tables:
push
(
@copy_cmd
,
map
{
sprintf
(
'
--include=%s#P#*.*
',
$_
)
}
keys
(
%only_tables
)
);
push
(
@copy_cmd
,
"
--exclude=*
"
);
}
elsif
(
defined
(
$opt_skip_tables
)
)
{
push
(
@copy_cmd
,
'
--include=db.opt
'
);
push
(
@copy_cmd
,
map
{
sprintf
(
'
--exclude=%s.*
',
$_
)
}
keys
(
%skip_tables
)
);
# Partitioned tables:
push
(
@copy_cmd
,
map
{
sprintf
(
'
--exclude=%s#P#*.*
',
$_
)
}
keys
(
%skip_tables
)
);
push
(
@copy_cmd
,
"
--include=*
"
);
}
...
...
Write
Preview
Markdown
is supported
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