Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
interfect
funkwhale
Commits
fb2c628f
Commit
fb2c628f
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Update paths to reflect our recommended setups
parent
5ab0dd71
No related branches found
No related tags found
No related merge requests found
Pipeline
#3100
passed with stages
in 4 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/upgrading/index.rst
+5
-4
5 additions, 4 deletions
docs/upgrading/index.rst
with
5 additions
and
4 deletions
docs/upgrading/index.rst
+
5
−
4
View file @
fb2c628f
...
@@ -83,15 +83,16 @@ keeping a backup of the old version in ``./postgres-old``:
...
@@ -83,15 +83,16 @@ keeping a backup of the old version in ``./postgres-old``:
# Replace "9.4" and "11" with the versions you are migrating between.
# Replace "9.4" and "11" with the versions you are migrating between.
export OLD_POSTGRES=9.4
export OLD_POSTGRES=9.4
export NEW_POSTGRES=11
export NEW_POSTGRES=11
docker-compose stop postgres
docker run --rm \
docker run --rm \
-v `pwd`/postgres:/var/lib/postgresql/${OLD_POSTGRES}/data \
-v `pwd`/
data/
postgres:/var/lib/postgresql/${OLD_POSTGRES}/data \
-v `pwd`/postgres-new:/var/lib/postgresql/${NEW_POSTGRES}/data \
-v `pwd`/
data/
postgres-new:/var/lib/postgresql/${NEW_POSTGRES}/data \
tianon/postgres-upgrade:${OLD_POSTGRES}-to-${NEW_POSTGRES}
tianon/postgres-upgrade:${OLD_POSTGRES}-to-${NEW_POSTGRES}
# Add back the access control rule that doesn't survive the upgrade
# Add back the access control rule that doesn't survive the upgrade
echo "host all all all trust" | sudo tee -a ./postgres-new/pg_hba.conf
echo "host all all all trust" | sudo tee -a ./postgres-new/pg_hba.conf
# Swap over to the new database
# Swap over to the new database
mv ./postgres ./postgres-old
mv ./
data/
postgres ./
data/
postgres-old
mv ./postgres-new ./postgres
mv ./
data/
postgres-new ./
data/
postgres
Non-docker setup
Non-docker setup
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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