This repository has been archived by the owner on May 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
migrate.cfg.example
103 lines (70 loc) · 2.45 KB
/
migrate.cfg.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Sample configuration file, update to meet your needs
[source]
# URL of the XML-RPC trac endpoint
url: http://username:[email protected]/trac/login/xmlrpc
[target]
# Trac to GitLab user mappings
usernames = {
'trac1': 'git1',
'trac2': 'git2'
}
# Fallback user to use if not present in mapping
default_user: bot
# project's path
project_name: foo/bar
# Method to use: api or direct
method: direct
# URL of the GitLab web API (if method = api)
url: https://gitlab.example.com/api/v3
# API access token (if method = api)
access_token: secretsecret
# Uncomment to verify SSL keys (default = no ) (if method = api)
# ssl_verify: yes
# Overwrite existing project's data in the database (if method = direct, default = yes)
overwrite: yes
# database name (if method = direct)
db-name: gitlabhq_production
# database user (if method = direct)
db-user: gitlab
# database password (if method = direct)
# Not set in recent GitLab installation. You need to create a PostgreSQL user for the
# user that runs the migration and map it to the gitlab user in /var/opt/gitlab/postgresql/data/pg_ident.conf
db-password:
# database socket path (if method = direct)
# Override this if not using the Gitlab builtin PostgreSQL, to specify the path
# to the PostgreSQL control socket (e.g. /run/postgresql)
db-path: /var/opt/gitlab/postgresql/
# Path to the gitlab uploads directory (if method = direct)
uploads: /var/opt/gitlab/gitlab-rails/uploads
[wiki]
# Should we migrate the wiki (default = yes)
# migrate: yes
# Comma separated list of authors to exclude (default=trac)
# exclude_authors: trac
# Directory where the wiki pages should be written
target-directory: /tmp/test.wiki/
[issues]
# Should we migrate the issues (default = yes)
# migrate: yes
# If defined, import only these issues
# only_issues: [ 509, 561, 564, 626, 631, 792, 830]
# If defined, do not import these issues
# blacklist_issues: [ 268, 843 ]
# Add a label to all migrated issues
# add_label: Websites
# Trac component to migrate issues from
component_filter: [
u'Vorbis Core - documentation',
u'Vorbis Core - libvorbis',
u'Vorbis Core - libvorbisenc',
u'Vorbis Core - libvorbisfile'
]
# Migrate keywords
migrate_keywords: no
# Migrate milestones
migrate_milestones: no
# Add the trac component as label to the Gitlab issue
add_component_as_label: no
# Add a header with original poster and date to issues and comments
# (useful for api mode where this information is lost)
add_header: no