Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ops
jumpserver
Commits
b53978f9
Unverified
Commit
b53978f9
authored
Aug 21, 2018
by
wojiushixiaobai
Committed by
GitHub
Aug 21, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1723 from wojiushixiaobai/docs
[Update]修改升级文档
parents
326a47d5
1e73da3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
upgrade.rst
docs/upgrade.rst
+13
-7
No files found.
docs/upgrade.rst
View file @
b53978f9
...
...
@@ -89,9 +89,12 @@
$ cp config.py $jumpserver_backup
$ cp -r data/media $jumpserver_backup/
$ for app in audits common users assets ops perms terminal;do
mkdir -p $jumpserver_backup/${app}_migrations
cp apps/${app}/migrations/*.py $jumpserver_backup/${app}_migrations
$ cd apps
$ for d in $(ls);do
if [ -d $d ] && [ -d $d/migrations ];then
mkdir -p $jumpserver_backup/${d}/migrations
cp ${d}/migrations/*.py $jumpserver_backup/${d}/migrations/
fi
done
2. 备份数据库,已被不时之需
...
...
@@ -115,13 +118,16 @@
::
$ cd /opt/jumpserver
$ for app in audits common users assets ops perms terminal;do
cp $jumpserver_backup/${app}_migrations/*.py apps/${app}/migrations/
done
$ cp $jumpserver_backup/config.py .
$ cp -r $jumpserver_backup/media/* data/media/
$ cd apps
$ for d in $(ls);do
if [ -d $d ] && [ -d $d/migrations ];then
cp $jumpserver_backup/${d}/migrations/*.py ${d}/migrations/
fi
done
5. 更新依赖或表结构
::
...
...
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