diff options
Diffstat (limited to 'doc/administration/postgresql/multiple_databases.md')
-rw-r--r-- | doc/administration/postgresql/multiple_databases.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/administration/postgresql/multiple_databases.md b/doc/administration/postgresql/multiple_databases.md index 9e5e34d930c..80f2f369428 100644 --- a/doc/administration/postgresql/multiple_databases.md +++ b/doc/administration/postgresql/multiple_databases.md @@ -41,8 +41,15 @@ databases. Some examples: To migrate existing data from the `main` database to the `ci` database, you can copy the database across. +NOTE: +If something unexpected happens during the migration, it is safe to start over. + ### Existing self-compiled installation +1. [Disable background migrations](../../development/database/batched_background_migrations.md#enable-or-disable-background-migrations) + +1. [Ensure all background migrations are finished](../../update/background_migrations.md#check-the-status-of-batched-background-migrations) + 1. Stop GitLab, except for PostgreSQL: ```shell @@ -67,6 +74,10 @@ copy the database across. ### Existing Linux package installations +1. [Disable background migrations](../../development/database/batched_background_migrations.md#enable-or-disable-background-migrations) + +1. [Ensure all background migrations are finished](../../update/background_migrations.md#check-the-status-of-batched-background-migrations) + 1. Stop GitLab, except for PostgreSQL: ```shell @@ -152,6 +163,8 @@ the other way around. sudo service gitlab restart ``` +1. [Enable background migrations](../../development/database/batched_background_migrations.md#enable-or-disable-background-migrations) + ### Linux package installations 1. For existing installations, @@ -204,6 +217,8 @@ the other way around. sudo gitlab-ctl restart ``` +1. [Enable background migrations](../../development/database/batched_background_migrations.md#enable-or-disable-background-migrations) + ## Further information For more information on multiple databases, see [issue 6168](https://gitlab.com/groups/gitlab-org/-/epics/6168). |