Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-deploy-utils
Commits
59e141fb
Commit
59e141fb
authored
Jan 19, 2017
by
QA-甘 盛聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
38da272b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
database_backup.sh
sh-utils/center/database_backup.sh
+6
-2
database_sync.sh
sh-utils/deploy/database_sync.sh
+1
-1
No files found.
sh-utils/center/database_backup.sh
View file @
59e141fb
...
@@ -81,8 +81,12 @@ elif [[ $database_name = 'spider_center' ]]; then
...
@@ -81,8 +81,12 @@ elif [[ $database_name = 'spider_center' ]]; then
port
=
'3312'
port
=
'3312'
elif
[[
$database_name
=
'xyqb_user'
]]
;
then
elif
[[
$database_name
=
'xyqb_user'
]]
;
then
# 用户中心
# 用户中心
sys_table_list
=
'merchant merchant_config'
sys_table_list
=
'merchant_config'
port
=
'3312'
port
=
'3313'
elif
[[
$database_name
=
'merchant'
]]
;
then
# 用户中心
sys_table_list
=
'authority'
port
=
'3314'
fi
fi
if
[
!
-f
"
$backfilename
"
]
;
then
if
[
!
-f
"
$backfilename
"
]
;
then
...
...
sh-utils/deploy/database_sync.sh
View file @
59e141fb
...
@@ -49,7 +49,7 @@ function database_ops()
...
@@ -49,7 +49,7 @@ function database_ops()
fi
fi
}
}
database_list
=
'xyqb_user xyqb xyqb_app payment_center risk_control dujiangyan mall qinqiong quartz contract financial_system gyxd offline sms-center spider_center'
database_list
=
'xyqb_user
merchant
xyqb xyqb_app payment_center risk_control dujiangyan mall qinqiong quartz contract financial_system gyxd offline sms-center spider_center'
if
[[
"
${
database_name
}
"
=
"all"
]]
if
[[
"
${
database_name
}
"
=
"all"
]]
then
then
echo
"all database"
echo
"all database"
...
...
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