Export and Import Project Data
To perform a backup, a project owner can export the project’s data to an OCI Object Storage bucket in any data center. Then later, the exported project data can be imported into the same project (or a different one) in the same data center (or a different one).
To export or import data, you'll need to set up a connection to OCI Object Storage. Contact your OCI administrator to get the required input values to set up the connection to the OCI Object Storage bucket. To successfully connect, you must provide either OCI credentials or a pre-authenticated request URL.
The values you need are explained in the import and export sections that follow.
What Project Data Does VB Studio Automatically Export?
Before exporting your project's data, you should be aware that VB Studio doesn't export all the artifacts automatically. You'll still have to manually export any artifacts and data that weren't exported automatically.
Here's a list of the artifacts that are exported by VB Studio and the ones you'll have to export manually:
Artifact | Exported? | Notes |
---|---|---|
Project users | No | When you export a project's data, its users are not exported. However, all the
data associated with the usernames (issue ownership and reviewers of a
merge request, for example) will be preserved.
After you import the project's data to another project, all the data associated with the username will automatically be restored after you add a user with the same username to the project. |
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 will be automatically added after you add the same users to the target project. |
Workspaces | No | Repositories that are associated with your user's workspaces will be exported, but the workspaces themselves will not be. |
Maven artifacts | No | |
Linked Docker registries | No | |
Build jobs | Yes | All builds of jobs are exported, along with their logs and artifacts. If a job retains an excessive number of builds, it will adversely affect the export process and will require a large amount of storage space in your bucket.
Configure a job to retain a reasonable number of builds before you export the project. |
Build job's history and artifacts | Yes | |
Name of the build job's build executor template | No | |
Pipelines | Yes | |
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 your project's data to another project, owners will be automatically activated after the same users are added to the target project. |
Issue custom fields | Yes | |
Named passwords/private keys | Yes |
Note: The passwords are securely exported and imported as keystore binary data. |
Export to and Import from an OCI Object Storage Bucket
If you're a project owner in an organization that runs VB Studio on OCI, you'll export project data to and import exported project data from an OCI Object Storage bucket.
Exported project data isn't encrypted and can be downloaded from the bucket. Your OCI administrator will already have set up an OCI Object Storage bucket for the project, and which users can read from or write to it. It may be a common bucket that's used for all the organization's projects, but more likely it's separate buckets for each project, which allows archive files to be organized without being grouped with archive files from other projects.
You can connect to the OCI Object Storage bucket using OCI credentials or a pre-authenticated request (PAR) URL:
- The preferred method is to use OCI credentials since they're permanent and don't typically expire.
- Using a PAR URL is simpler, although that convenience comes at a cost, since PAR URLs can fail due to various reasons and can be difficult to troubleshoot. For example, if the OCI administrator who gives you the PAR URL ever leaves the company, you'll need a new PAR URL.
PAR URLs are also considered less safe than OCI credentials because you must store PAR URLs someplace outside Object Storage, and anyone with access to the URL has access to the bucket. For this reason, always ensure you store a PAR URL in a safe, recoverable place.
For more information about PAR URLs, see Object Storage Pre-Authenticated Requests.
Export Project Data to an OCI Object Storage Bucket Using OCI Credentials
You must be a Project Owner to export project data. When you export project data, VB Studio will export data to an archive file in the specified OCI Object Storage bucket, connected using OCI credentials.
- Name of the target bucket
- Private key and fingerprint of a user who can write objects to the bucket
- Details of the compartment that hosts the bucket
Note:
If you are an Oracle Cloud Applications customer, contact Oracle Support for the details you'll need to complete steps 6-13.Here's how to export your project's data:
Import Project Data from an OCI Object Storage Bucket Using OCI Credentials
You must be a Project Owner to import project data. When you import project data, it will overwrite all the project data in the target project. All of the project's artifacts will be replaced with the components from the project imported from the specified OCI Object Storage bucket, connected using OCI credentials.
- Name of the target bucket
- Name of the archive file with the project data
- Private key and fingerprint of a user who can read objects from the bucket
- Details of the compartment that hosts the bucket
Contact Oracle Support or your OCI administrator for the details and get the required input values that you'll be entering in steps 6-13. These values are explained in Get the Required OCI Input Values in Administering Visual Builder Studio.
Here's how to import data to your target project:
Export Project Data to an OCI Object Storage Bucket Using a PAR URL
You must be a project owner to export project data. When you export project data, VB Studio will export data to an archive file in the specified OCI Object Storage bucket, connected using a pre-authenticated request (PAR) URL for that bucket.
- Pre-authenticated request URL for the bucket, which you can obtain from your OCI administrator
Here's how to export your project's data:
Import Project Data from an OCI Object Storage Bucket Using a PAR URL
You must be a project owner to import project data. When you import project data, it will overwrite all the project data in the target project. All of the project's artifacts will be replaced with the components from the project imported from the specified OCI Object Storage bucket, connected using a pre-authenticated request (PAR) URL for that bucket.
To do this, you need the following:
- Pre-authenticated request URL for the bucket, which you can obtain from your OCI administrator
- Name of the archive file with the project data
Here's how to import data to your target project:
View Export and Import History of the Project
You can examine a project's export and import history from the Data Export/Import page's History tab:
-
In the left navigator, 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 failed job, expand Steps to view the modules that passed and those which failed.