debian-mirror-gitlab/doc/administration/raketasks/project_import_export.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2019-09-30 21:07:59 +05:30
# Project import/export administration **(CORE ONLY)**
2016-08-24 12:49:21 +05:30
>**Note:**
2016-09-13 17:45:13 +05:30
>
2019-09-30 21:07:59 +05:30
> - [Introduced][ce-3050] in GitLab 8.9.
> - Importing will not be possible if the import instance version is lower
> than that of the exporter.
> - For existing installations, the project import option has to be enabled in
> application settings (`/admin/application_settings`) under 'Import sources'.
> - The exports are stored in a temporary [shared directory][tmp] and are deleted
> every 24 hours by a specific worker.
> - ImportExport can use object storage automatically starting from GitLab 11.3
2016-08-24 12:49:21 +05:30
The GitLab Import/Export version can be checked by using:
```bash
# Omnibus installations
sudo gitlab-rake gitlab:import_export:version
# Installations from source
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:
```bash
# Omnibus installations
sudo gitlab-rake gitlab:import_export:data
# Installations from source
bundle exec rake gitlab:import_export:data RAILS_ENV=production
```
2019-12-04 20:38:33 +05:30
[ce-3050]: https://gitlab.com/gitlab-org/gitlab-foss/issues/3050
2016-08-24 12:49:21 +05:30
[tmp]: ../../development/shared_files.md