Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
b1449ab9
Commit
b1449ab9
authored
Apr 18, 2006
by
osku
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
export.sh:
Automate snapshot creation process. Update "files internal to innobase" list.
parent
181aa37d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
7 deletions
+30
-7
export.sh
export.sh
+30
-7
No files found.
export.sh
View file @
b1449ab9
#!/bin/bash
#!/bin/bash
#
#
# export current working directory in a format suitable for sending to
# export current working directory in a format suitable for sending to
MySQL
#
MySQL as a snapshot
.
#
as a snapshot. also generates the actual snapshot and sends it to MySQL
.
set
-eu
set
-eu
if
[
$#
-ne
1
]
;
then
die
()
{
echo
"Usage: export.sh revision-number-of-last-snapshot"
echo
$*
exit
1
exit
1
}
if
[
$#
-ne
2
]
;
then
die
"Usage: export.sh revision-number-of-last-snapshot current-revision-number"
fi
set
+u
if
test
-z
$EDITOR
;
then
die
"
\$
EDITOR is not set"
fi
fi
set
-u
rm
-rf
to-mysql
rm
-rf
to-mysql
mkdir
-p
to-mysql/storage/
mkdir
-p
to-mysql/storage/
svn log
-v
-r
"
$
1
:BASE"
>
to-mysql/log
svn log
-v
-r
"
$
((
$1
+
1
))
:BASE"
>
to-mysql/log
svn
export
.
to-mysql/storage/innobase
svn
export
-q
.
to-mysql/storage/innobase
cd
to-mysql
cd
to-mysql
mkdir
-p
sql mysql-test/t mysql-test/r mysql-test/include
mkdir
-p
sql mysql-test/t mysql-test/r mysql-test/include
...
@@ -27,5 +37,18 @@ mv mysql-test/*.result ../../mysql-test/r
...
@@ -27,5 +37,18 @@ mv mysql-test/*.result ../../mysql-test/r
mv
mysql-test/
*
.inc ../../mysql-test/include
mv
mysql-test/
*
.inc ../../mysql-test/include
rmdir
mysql-test
rmdir
mysql-test
rm
setup.sh export.sh compile-innodb-debug
rm
setup.sh export.sh revert_gen.sh compile-innodb-debug compile-innodb
cd
../..
$EDITOR
log
cd
..
fname
=
"innodb-5.1-ss
$2
.tar.gz"
rm
-f
$fname
tar
czf
$fname
to-mysql
scp
$fname
mysql:snapshots
rm
$fname
rm
-rf
to-mysql
echo
"Sent
$fname
to MySQL"
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