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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
3a7eb38a
Commit
3a7eb38a
authored
Jun 17, 2016
by
James Lopez
Committed by
Achilleas Pipinellis
Jun 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added nice to have - rake task and some changes to docs
parent
6715402e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
doc/README.md
doc/README.md
+1
-0
doc/workflow/import_export/README.md
doc/workflow/import_export/README.md
+4
-4
lib/tasks/gitlab/import_export.rake
lib/tasks/gitlab/import_export.rake
+13
-0
No files found.
doc/README.md
View file @
3a7eb38a
...
...
@@ -7,6 +7,7 @@
-
[
GitLab as OAuth2 authentication service provider
](
integration/oauth_provider.md
)
. It allows you to login to other applications from GitLab.
-
[
GitLab Basics
](
gitlab-basics/README.md
)
Find step by step how to start working on your commandline and on GitLab.
-
[
Importing to GitLab
](
workflow/importing/README.md
)
.
-
[
Importing and exporting projects between instances
](
workflow/import_export/README.md
)
.
-
[
Markdown
](
markdown/markdown.md
)
GitLab's advanced formatting system.
-
[
Migrating from SVN
](
workflow/importing/migrating_from_svn.md
)
Convert a SVN repository to Git and GitLab
-
[
Permissions
](
permissions/permissions.md
)
Learn what each role in a project (external/guest/reporter/developer/master/owner) can do.
...
...
doc/
administration/import_export
.md
→
doc/
workflow/import_export/README
.md
View file @
3a7eb38a
# Project import/export
Existing projects running on any GitLab instance or GitLab.com can be exported
with all its related data and be moved to a new GitLab instance.
with all its related data and be moved
in
to a new GitLab instance.
>**Note:**
-
This feature was
[
introduced
][
ce-3050
]
in GitLab 8.9
...
...
@@ -51,14 +51,14 @@ can be generated again
## Advanced
>
The GitLab Import/Export version can be checked by using:
The GitLab Import/Export version can be checked by using:
```
bash
cd
/home/git/gitlab
sudo
-u
git
-H
bundle
exec
rake gitlab:import_export:version
sudo
-u
git
-H
bundle
exec
rake gitlab:import_export:version
RAILS_ENV
=
production
```
>
The current list of DB tables that will get exported can be listed by using:
The current list of DB tables that will get exported can be listed by using:
```
bash
cd
/home/git/gitlab
...
...
lib/tasks/gitlab/import_export.rake
0 → 100644
View file @
3a7eb38a
namespace
:gitlab
do
namespace
:import_export
do
desc
"GitLab | Show Import/Export version"
task
version: :environment
do
puts
"Import/Export v
#{
Gitlab
::
ImportExport
.
version
}
"
end
desc
"GitLab | Display exported DB structure"
task
data: :environment
do
puts
YAML
.
load_file
(
Gitlab
::
ImportExport
.
config_file
)[
'project_tree'
].
to_yaml
(
:SortKeys
=>
true
)
end
end
end
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