diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 00:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-19 00:12:08 +0300 |
commit | 2d277754ebd347fd7c98a55d41f6c4de5e9920cc (patch) | |
tree | 5491a3e5e3aaffac25152f34f42c9be16e9c285a /doc/administration/backup_restore | |
parent | 5ba99858f15c33bf96f94cc5e9663f01c3532689 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/administration/backup_restore')
-rw-r--r-- | doc/administration/backup_restore/backup_gitlab.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/administration/backup_restore/backup_gitlab.md b/doc/administration/backup_restore/backup_gitlab.md index cf653b108ef..f38358810e3 100644 --- a/doc/administration/backup_restore/backup_gitlab.md +++ b/doc/administration/backup_restore/backup_gitlab.md @@ -1843,9 +1843,9 @@ Truncate the file names in the `uploads` table: SELECT u.id, u.path, - -- Current filename + -- Current file name (regexp_match(u.path, '[^\\/:*?"<>|\r\n]+$'))[1] AS current_filename, - -- New filename + -- New file name CONCAT( LEFT(SPLIT_PART((regexp_match(u.path, '[^\\/:*?"<>|\r\n]+$'))[1], '.', 1), 242), COALESCE(SUBSTRING((regexp_match(u.path, '[^\\/:*?"<>|\r\n]+$'))[1] FROM '\.(?:.(?!\.))+$')) @@ -1875,8 +1875,8 @@ Truncate the file names in the `uploads` table: Where: - - `current_filename`: a filename that is currently more than 246 characters long. - - `new_filename`: a filename that has been truncated to 246 characters maximum. + - `current_filename`: a file name that is currently more than 246 characters long. + - `new_filename`: a file name that has been truncated to 246 characters maximum. - `new_path`: new path considering the `new_filename` (truncated). After you validate the batch results, you must change the batch size (`row_id`) using the following sequence of numbers (10000 to 20000). Repeat this process until you reach the last record in the `uploads` table. |