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
3a0ae273
Commit
3a0ae273
authored
Mar 18, 2008
by
Nathan Johnson
Browse files
resitricted -xref and -probe_mapping to core DBs
parent
7dcef984
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
misc-scripts/CopyDBoverServer.pl
misc-scripts/CopyDBoverServer.pl
+6
-3
No files found.
misc-scripts/CopyDBoverServer.pl
View file @
3a0ae273
...
...
@@ -76,7 +76,7 @@ if($dbflush && $noflush){
}
if
(
$probe_mapping
&&
$xref
){
die
('
Cannot specify mutually exclusive options -probemapping and -xref
');
die
('
Cannot specify mutually exclusive options -probe
_
mapping and -xref
');
}
...
...
@@ -123,6 +123,9 @@ my $table_type = '';
$table_type
=
'
xref
'
if
$xref
;
$table_type
=
'
probe_mapping
'
if
$probe_mapping
;
#Currently this fails if xref or probe_mapping is specified for a non-core DB
#We need to default to normal copy if dbname !~ _core_
my
$flush_scope
=
(
defined
$dbflush
)
?
'
src_db
'
:
'
src_srv
';
my
(
$generic_working_host
)
=
(
gethostbyname
(
hostname
));
...
...
@@ -297,7 +300,7 @@ skipped copy of ".$db_to_copy->{src_db}." from ".$db_to_copy->{src_srv}." to ".
if
(
$copy_executable
=~
/\/bin\/cp$/
)
{
if
(
$table_type
){
#Copy table subset
if
(
$table_type
&&
(
$db_to_copy
->
{
src_db
}
=~
/_core_/
)
){
#Copy
core
table subset
foreach
my
$table
(
@
{
$tables
{
$table_type
}}){
$copy_cmd
.=
"
$copy_executable
$source_db
/
$table
.*
$destination_tmp_directory
/
$db_to_copy
->{dest_db};
";
...
...
@@ -313,7 +316,7 @@ skipped copy of ".$db_to_copy->{src_db}." from ".$db_to_copy->{src_srv}." to ".
}
# OR rcp the db to $destination_tmp_directory in the destination server
elsif
(
$copy_executable
eq
"
/usr/bin/rcp
")
{
if
(
$table_type
){
#Copy table subset
if
(
$table_type
&&
(
$db_to_copy
->
{
src_db
}
=~
/_core_/
)
){
#Copy
core
table subset
foreach
my
$table
(
@
{
$tables
{
$table_type
}}){
$copy_cmd
.=
"
$copy_executable
-r
$db_to_copy
->{src_srv}:
$source_db
/
$table
.*
$destination_tmp_directory
/
$db_to_copy
->{dest_db};
";
...
...
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