2018-02-02 13:39:55 -05:00
- return unless Gitlab::CurrentSettings.project_export_enabled?
2017-07-31 17:34:47 -04:00
- project = local_assigns.fetch(:project)
- expanded = Rails.env.test?
2018-06-27 08:21:36 -04:00
%section.settings.no-animate#js-export-project{ class: ('expanded' if expanded) }
2017-07-31 17:34:47 -04:00
.settings-header
%h4
Export project
2018-04-02 12:13:07 -04:00
%button.btn.js-settings-toggle{ type: 'button' }
2017-07-31 17:34:47 -04:00
= expanded ? 'Collapse' : 'Expand'
%p
Export this project with all its related data in order to move your project to a new GitLab instance. Once the export is finished, you can import the file from the "New Project" page.
2017-10-14 02:10:37 -04:00
.settings-content
2017-07-31 17:34:47 -04:00
.bs-callout.bs-callout-info
%p.append-bottom-0
%p
The following items will be exported:
%ul
%li Project and wiki repositories
%li Project uploads
2019-01-10 20:06:55 -05:00
%li Project configuration, including services
2017-07-31 17:34:47 -04:00
%li Issues with comments, merge requests with diffs and comments, labels, milestones, snippets, and other project entities
2018-03-30 10:32:21 -04:00
%li LFS objects
2017-07-31 17:34:47 -04:00
%p
The following items will NOT be exported:
%ul
%li Job traces and artifacts
%li Container registry images
%li CI variables
2019-01-10 20:06:55 -05:00
%li Webhooks
2017-07-31 17:34:47 -04:00
%li Any encrypted tokens
%p
2018-01-12 03:35:10 -05:00
Once the exported file is ready, you will receive a notification email with a download link, or you can download it from this page.
2018-06-25 09:10:26 -04:00
- if project.export_status == :finished
2019-01-16 07:09:29 -05:00
= link_to 'Download export', download_export_project_path(project),
2017-07-31 17:34:47 -04:00
rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
2019-01-16 07:09:29 -05:00
= link_to 'Generate new export', generate_new_export_project_path(project),
2017-07-31 17:34:47 -04:00
method: :post, class: "btn btn-default"
- else
= link_to 'Export project', export_project_path(project),
method: :post, class: "btn btn-default"