Commit 3a7eb38a authored by James Lopez's avatar James Lopez Committed by Achilleas Pipinellis

added nice to have - rake task and some changes to docs

parent 6715402e
......@@ -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.
......
# 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 into 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
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment