Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
2e5d01ac
Commit
2e5d01ac
authored
Feb 05, 2020
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation for import.rake
parent
97ef9b30
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
doc/development/import_project.md
doc/development/import_project.md
+11
-1
lib/tasks/gitlab/import_export/import.rake
lib/tasks/gitlab/import_export/import.rake
+1
-1
No files found.
doc/development/import_project.md
View file @
2e5d01ac
...
...
@@ -53,8 +53,18 @@ As part of this script we also disable direct and background upload to avoid sit
We can simply run this script from the terminal:
Parameters:
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`username`
| string | yes | User name |
|
`namespace_path`
| string | yes | Namespace path |
|
`project_path`
| string | yes | Project name |
|
`archive_path`
| string | yes | Path to the exported project tarball you want to import |
|
`measurement_enabled`
| boolean | no | If enabled, it will measure execution time, number of sql calls and GC count. It's false by default |
```
shell
bundle
exec
rake
"gitlab:import_export:import[root, root, testingprojectimport, /path/to/file.tar.gz]"
bundle
exec
rake
"gitlab:import_export:import[root, root, testingprojectimport, /path/to/file.tar.gz
, true
]"
```
### Importing via the Rails console
...
...
lib/tasks/gitlab/import_export/import.rake
View file @
2e5d01ac
...
...
@@ -7,7 +7,7 @@
# 2. Performs Sidekiq job synchronously
#
# @example
# bundle exec rake "gitlab:import_export:import[root, root, imported_project, /path/to/file.tar.gz]"
# bundle exec rake "gitlab:import_export:import[root, root, imported_project, /path/to/file.tar.gz
, true
]"
#
namespace
:gitlab
do
namespace
:import_export
do
...
...
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