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?
2017-10-14 02:10:37 -04:00
%section.settings.no-animate{ 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
%li Project configuration including web hooks and services
%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
%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.
2017-07-31 17:34:47 -04:00
- if project.export_project_path
= link_to 'Download export', download_export_project_path(project),
rel: 'nofollow', download: '', method: :get, class: "btn btn-default"
= link_to 'Generate new export', generate_new_export_project_path(project),
method: :post, class: "btn btn-default"
- else
= link_to 'Export project', export_project_path(project),
method: :post, class: "btn btn-default"