Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
e3233965
Commit
e3233965
authored
13 years ago
by
Andy Yates
Browse files
Options
Downloads
Patches
Plain Diff
Checksums should be the other way around. It's checksum then file not file then checksum
parent
e2e40b26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/db/dump_mysql.pl
+8
-6
8 additions, 6 deletions
misc-scripts/db/dump_mysql.pl
with
8 additions
and
6 deletions
misc-scripts/db/dump_mysql.pl
+
8
−
6
View file @
e3233965
...
...
@@ -348,7 +348,7 @@ sub checksum {
my
$path
=
File::
Spec
->
catfile
(
$dir
,
$file
);
my
$sum
=
`
sum
$path
`;
$sum
=~
s/\s* $path//xms
;
print
$fh
$file
,
"
\t
",
$sum
;
print
$fh
"
${sum}
\t
${file}
"
;
}
$fh
->
close
();
$self
->
permissions
(
$checksum
);
...
...
@@ -505,7 +505,11 @@ sub _set_opts_from_hostname {
$o
->
{
port
}
=
$settings
->
{
port
};
if
(
!
$o
->
{
databases
})
{
$o
->
{
databases
}
=
$self
->
_all_dbs
(
$settings
->
{
pattern
});
my
$opts_pattern
=
$o
->
{
pattern
};
$opts_pattern
=
qr/$opts_pattern/
if
$opts_pattern
;
my
$settings_pattern
=
$settings
->
{
pattern
};
my
$pattern
=
(
defined
$opts_pattern
)
?
$opts_pattern
:
$settings_pattern
;
$o
->
{
databases
}
=
$self
->
_all_dbs
(
$pattern
);
}
#Set default dir
...
...
@@ -656,8 +660,7 @@ REQUIRED. Password of the connecting user.
Uses the default mechanism which involves looking at the host the script
is executing on and setting a number of options for databases to look for
as well as port settings. C<-defaults> can be used in conjunction with
C<-groups>, C<-species> and C<-tables> but not with parameters like <--host>
and C<--pattern>.
C<-groups>, C<-species> and C<-tables> but not with parameters like <--host>.
The options set are specified by your custom ini-file.
...
...
@@ -680,8 +683,7 @@ with <--defaults>.
=item B<--pattern>
Allows the specification of a regular expression to select databases with.
Cannot be used in conjunction with the C<--databases> argument. Cannot be used
with <--defaults>.
Cannot be used in conjunction with the C<--databases> argument.
=item B<--databases>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment