Export Project Data to and Import Project Data from Oracle Cloud
You can export your project’s data to an OCI Object Storage Classic container of any data center to perform a backup. You can then import the data into the same or another project of the same or a different data center when you want.
To export or import data, first, you’d need to set up a connection to OCI Object Storage Classic.
Exported Data
Before you export a project's data, note that not all the artifacts of the project are exported. You'll have to manually export the remaining artifacts and data manually.
This table shows you which artifacts are exported and which aren't:
Artifact | Exported? | Notes |
---|---|---|
Project users | No | When you export a project's data, its users are not exported, but all data associated to usernames (such as issue ownership and reviewers of a merge request) is preserved.
After you import the project's data to another project, when you add a user to the project with the same username, the data associated to the username is automatically restored. |
User's favorite settings or personal preferences | No | |
Hosted Git repositories | Yes | |
Mirrored public external Git repositories | Yes | |
Mirrored private external Git repositories | No | Password protected external Git repositories aren't exported.
After you import the project's data to another project, you must add each external private Git repository. |
Branch restrictions | Yes | |
Merge Requests | Yes | |
Default reviewers of a branch | Yes | After you import the project's data to another project, default reviewers are added automatically after the same users are added to the target project. |
Maven artifacts | No | |
Linked Docker registries | No | |
Build jobs | No | |
Releases | Yes | |
Deployment configurations | No | |
Environments | No | |
Issues | Yes | |
Agile boards | Yes | |
Wiki pages | Yes | |
Snippets | Yes | |
Project template definition | No | |
Announcements | No | |
Webhooks | No | |
RSS/ATOM feeds | No | |
Link rules | No | |
Project tags | Yes | |
Issue products and components | Yes | |
Default owners of issue components | Yes | After you import the project's data to another project, owners are activated automatically after the same users are added to the target project. |
Issue custom fields | Yes | |
Named passwords | Yes |
Export to and Import from an OCI Object Storage Classic Container
If you're an OCI Classic user, you can export project data to an OCI Object Storage Classic container and import from it.
The exported data isn't encrypted and can be downloaded from the container. If you're exporting the project's data for the first time, set up an OCI Object Storage Classic container for the project and users who can read from or write to it. You can use a common container for all projects of the organization, but it's recommended that you use a separate container for each project. This allows you to organize archive files better as they aren't mixed with the archive files of other projects. Contact the identity domain administrator or the OCI Object Storage Classic administrator to create the container. You should also ask the administrator to set up users with read-write access to the container.
Set Up the OCI Object Storage Classic Container
You must be an identity domain administrator to create a container and set up the user.
- On the OCI Object Storage Classic console, create a container for the project.
- Set up a user to access the container.
Export Project Data
When you export project data, DevCS exports data to an archive file in the specified OCI Object Storage Classic container.
- Name of the target container
- Credentials of a user with the Storage.Storage_Administrator or the Storage_ReadWriteGroup identity domain role.
- Service ID and the authorization URL of OCI Object Storage Classic
Contact the identity domain administrator or the OCI Object Storage Classic administrator for the details and get the required input values.
You must be assigned the project Owner role to export data.
Import Project Data
When you import data, it overwrites the data of the project. All artifacts of the project are replaced with the components from the imported project.
- Name of the target container
- Name of the archive file with the project data
- Credentials of a user with the Storage.Storage_Administrator, Storage_ReadWriteGroup, or Storage_ReadOnlyGroup identity domain role
- Service ID and the authorization URL of OCI Object Storage Classic
Contact the identity domain administrator or the OCI Object Storage Classic administrator for the details and get the required input values.
You must be assigned the project Owner role to import data.
View Export and Import History of the Project
If you want to know the export and import history of a project, you can do so from the History tab of the Data Export/Import page.
-
In the navigation bar, click Project Administration .
-
Click Data Export/Import.
-
Click the History tab.
The history of all export and import jobs is displayed. Select a job to view its details. In the case of a failure, expand Steps to view the modules that passed and failed.