Export and Import Project Data
To perform a backup, a project owner can export the project’s data to an OCI Object Storage bucket or OCI Object Storage Classic container 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 or OCI Object Storage Classic:
- If your organization uses VB Studio with OCI, you'll need to contact
your OCI administrator to get the required input values to set up the connection to
the OCI Object Storage bucket.
You can select the Remember check box before you connect to Object storage bucket to direct VB Studio to remember the input and export data you entered. See step 14 in Export Project Data to an OCI Object Storage Bucket or step 14 in Import Project Data from an OCI Object Storage Bucket.
- If your organization uses VB Studio with OCI Classic, you'll need to contact the identity domain administrator or the OCI Object Storage Classic administrator to get the required input values to set up the connection to the OCI Object Storage Classic container.
The values you need are explained in the import and export sections for OCI Object Storage buckets and OCI Object Storage Classic container in the 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 or container.
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 users who 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.
Export Project Data to an OCI Object Storage Bucket
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.
- 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
Contact your OCI administrator for the details and get the required input values, which are explained in Get OCI input Values in Administering Oracle Visual Builder.
Here's how to export your project's data:
Import Project Data from an OCI Object Storage Bucket
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 imported project.
- 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 your OCI administrator for the details and get the required input values, which are explained in Get OCI input Values in Administering Oracle Visual Builder.
Here's how to import data to your target project:
Export to and Import from an OCI Object Storage Container
If you're a project owner in an organization that runs VB Studio on OCI Classic, you'll export project data to and import project data from an OCI Object Storage Classic container.
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.
Export Project Data to an OCI Object Storage Classic Container
You must be the Project Owner to export project data. VB Studio will export your project's data to an archive file in the OCI Object Storage Classic container you specify.
- 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 that are explained in Get OCI Classic Input Values in Administering Visual Builder Studio.
Here's how to export your project's data to an OCI Object Storage Classic container:
Import Project Data to an OCI Object Storage Classic Container
When you import data, all existing project data will be overwritten by the imported data. All project artifacts will be replaced with the components from the imported project.
To import project data from an OCI Object Storage Classic container, you need the following information:
- 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 these details and get the required input values that are explained in Get OCI Classic Input Values in Administering Visual Builder Studio.
Here's how to import project data that was previously exported to an OCI Object Storage Classic container to your target project:
-
Open the VB Studio project.
-
In the left navigator, click, click Project Administration
.
-
Click Data Export/Import.
-
Click the Job tab.
-
In Account Type, select OCI Classic.
-
In Service ID, enter the value copied from the last part of the REST Endpoint URL field of the Service Details page.
For example, if the value of REST Endpoint URL is
https://demo12345678.storage.oraclecloud.com/v1/Storage-demo12345678
, then enterStorage-demo12345678
. -
In Username and Password, enter the credentials of the user assigned the Storage.Storage_Administrator, Storage_ReadWriteGroup, or Storage_ReadOnlyGroup identity domain role.
-
In Authorization URL, enter the URL copied from the Auth V1 Endpoint field of the Service Details page.
Example:
http://storagetria01234-usoracletria12345.storage.oraclecloud.com/auth/v1.0
. -
Click Connect.
-
In the Create Job section, in Type, select Import.
-
In Name, enter a name for the import job.
-
In Description, enter the job's description.
-
In Storage Container, select the container to import the project data from.
-
In Storage Object, select the .zip file name of the exported data.
-
Click Import.
-
In the Confirm Project Import dialog box, read and verify the container and object details, select the Import project data check box, and click Yes.
-
In the Importing Project page, expand Steps to see the status of each module.
If you want to cancel the import process, click Cancel.
When an import job is in progress, the project will be locked. You can’t access other pages of the project until the import job has finished. After the import is complete, you'll be redirected to the Project Home page. The Recent Activities feed in the Project Home page and the History tab in the Data Export/Import page will display messages about the import action.
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.