/
Backup Configuration

Backup Configuration

Table of Contents

After installation, Insight Assets Backup & Migration is available in the "Apps" administration menu:

Insight Assets Backup and Migration in the Manage Apps menu

Only Jira administrator users can access Insight Assets Backup app!

Initial Setup

After clicking Insight Assets Backup & Migration, if it is the first time when the app is accessed, you will be walked through the initial Setup process:

Initial Setup

1. Credentials - Token | Email | Workspace ID

For the first step, before creating and configuring individual backup schedules, the following three fields should be filled:

  • Workspace ID

    • Fill in the ID of the Assets (Insight) workspace you want to configure backup for. The Workspace ID can be found on the following link: https://[yourcloud].atlassian.net/rest/servicedeskapi/insight/workspace. The Jira Service Management REST API uses the workspace ID to identify your individual instance of Assets (Insight), it is an alphanumeric string at the end of the text shown on the opened link with the following sample appearance: 3b3b70g5-66f8-3c01-a2d7-e5bbf2584dc3:

    • {"size":1,"start":0,"limit":50,"isLastPage":true,"_links":{"self":"https://[yourcloud].atlassian.net/rest/servicedeskapi/assets/workspace","base":"https://[yourcloud].atlassian.net","context":""},"values":[{"workspaceId":"3b3b70g5-66f8-3c01-a2d7-e5bbf2584dc3"}]}

Workspace ID is a mandatory field and it should match the Workspace ID of the instance you are installing the app!

API Token is a mandatory field!

  • Email

    • Fill in the email related to the Atlassian account (valid JSM agent) that will be used to access the data in the Assets. To create and update the schemas, object types and objects, the user should have valid permissions, at least a Manager role in the schema (in case of resting in an existing schema), or the user should be added to Jira Admin group. Additionally, for restoring objects in issues, the user must have access to the projects/issues where the Asset custom fields are configured and the objects from the schema are selected.

Email is a mandatory field!

After filling the three fields in, click the “Save and Continue“ button. If there is an error in the filled fields, you will see the corresponding error message and link for editing the incorrect information:

Error message example when the workspace ID is incorrect

If the filled information is correct, you will see the corresponding success message:

If you have IP allowlisting enabled on your Jira Cloud, please contact us to receive the required information.

The app is compatible with the Cloud Site Rename feature!

2. Backup storage

For the second step, you have the option to decide where to store the backups. You can choose between Twinit DB and your own Database:

image-20250314-101106.png

The backups are encrypted on rest and on transfer!

If you choose to store the backup on Twinit database, click the “Backup on Twinit’s Database“ toggle and select the data storage location:

image-20250314-101325.png

You cannot change the data location later. This means that you cannot change the storage location of the already backed up schemas. However, you can later choose where to store the backups in the future. To do so, delete the connection and during the new configuration select the desired location. In this case, you will see the previous backups, but with an error message “Schema not found in backup“ and you will not be able to restore such backups.

As another option, you can choose your own local database to store the Assets backups:

image-20250314-102052.png
  • The three possible options for local DB are:

    • MongoDB

    • DocumentDB

    • CosmosDB

  • If your database is not publicly accessible from the internet, please contact us to receive the required information for whitelisting the app IPs on your server/firewall. The databases will be automatically indexed, improving performance.

After deciding on the database, click the Save and Continue button to proceed to the third step.

3. Sync Schemas

When the backup database is chosen, you will see the Current Connection information and can Sync the existing schemas by clicking the Sync schemas button:

image-20240121-124712.png
Initial Setup - Sync schemas

Sync may take up to a few minutes, depending on the quantity of the data in Assets (Insight).

The ATTACHMENTS STATUS shows whether Assets Attachments Backup & Migration app is installed on Cloud and what is the current license status. See Backup and Restore of object Attachments for more details. When the “Sync schemas“ button is clicked, this will also refresh the attachments status.

After a successful Sync, all the retrieved schemas from Assets (Insight) will be displayed:

image-20240121-124853.png
Initial setup - synched schemas

When a schema is created in assets (either manually or by restoring a backup), the schemas must be synced with the app.

Go to Synced Schemas for further details.

For the instructions of adding DC/Server schemas, please see Add Data Center / Server page.

Clicking the name and the icon of the app in the topmost left part of the interface will take you back to the home page:

image-20240913-100017.png

Connection

After initial setup, you can do the following actions on the current connection, by clicking the three dots after Sync schemas button:

Add new target instance

Here you can add a Cloud target instance, where you can later migrate the backed-up schemas (see Migration to another instance for more details). To add the target instance, fill in the following fields:

  1. Connection name

    • To easily identify the instance while migrating the schemas

  2. Target Email

    1. Fill in the email related to the Atlassian account that will be used to access the data in Assets (Insight) for a target instance (the user should have a valid agent license!)

  3. Target WorkspadeID

    1. Fill in the ID of the Assets (Insight) workspace you want to restore the backup to. The Workspace ID can be found on the following link: https://[yourcloud].atlassian.net/rest/servicedeskapi/assets/workspace. The Jira Service Management REST API uses the workspace ID to identify your individual instance of Assets (Insight), it is an alphanumeric string with the following sample appearance: 3b3b70g5-66f8-3c01-a2d7-e5bbf2584dc3.

  4. Target Instance URL

    1. URL of target instance: https://[yourcloud].atlassian.net

    2. Make sure to include “https://“ in the URL, otherwise you will not be able to save the instance - the corresponding error message will be shown along the field:

      Error message on the invalid URL format
    3. You also won't be able to save the URL if you indicate https:// but in reality the URL does not support https://

    4. Keep in mind, that you cannot use bypass like localhost or localtest.me

  5. Target Token

    1. Token for the target instance: you can create a token for a different, through the following URL: Atlassian account - API Tokens. You can read more about Atlassian token on the documentation page: Manage API tokens for your Atlassian account | Atlassian Support.

    2. After creating a token, just copy and paste it into the corresponding “Target Token“ field.

After filling in the necessary information, click the Save target instance button to add the instance to the list.

The Insight Assets Backup & Migration app must be installed and must have an active license (trial or paid) on the target instance, unless it is not a sandbox instance of the current connection, the app has already been paid on the main instance and a free app can be installed on the sandbox.

After the instance is added, you can see and modify it from the List of target instances.

List of target instances

From here you can see and manage the added target instances:

image-20241223-131435.png
List of target instances

The list shows:

  • Instance name

  • Location

    • Cloud

    • Data Center

  • Created at

    • Date when the target instance was added

  • Actions

    • Edit

    • Delete

      • To delete the target instance from the list

You can also add a new instance, by clicking the +Add new button.

Edit configuration

From here you can modify the details of the current instance:

image-20250315-181026.png

You can modify all the fields that were configured during the Initial setup, including the local database, by turning on the Backup on local database toggle.

You cannot change the data location on the Twinit database, that you have already selected during the initial setup. If you selected your local database during the initial setup, but now want to select the Twinit database, you can select only the EU location. This also means that you cannot change the storage location of the already backed up schemas. However, you can still choose the location of your backups. To do so, delete the connection and during the new configuration select the desired location. In this case, you will see the previous backups, but with an error message “Schema not found in backup“ and you will not be able to restore such backups.

If the API Token is expired or deleted, or if there is an issue with checking the token status, you will see the corresponding message during sync schemas, backup and restore:

image-20241104-013655.png

Delete

You can delete the current connection by clicking Delete. You will see the confirmation popup:

Deleting current instance

If you click the Delete button, the synched schemas will disappear and to continue using the app, you will need to go through the Initial setup.

Synced schemas

Here you can see the synched schemas from the current instance and Data Center / Server instances. The grid shows the following information:

  • Schema Name

  • Instance

    • URL of the instance where the schema is located

  • Location

  • Status

    • Active

    • Inactive

      • The schema will be “inactive” if it was a part of another instance, but the instance was later removed from the list.

      • Backup will be disabled for the schemas with the “Inactive” status

    • Deleted

      • When the schema is deleted from the assets. It is not possible to backup the deleted schema, in this case Backup now button will be disabled:

        • Deleted schema
      • Sync Error

        • Backup will be disabled for the schemas with the “Sync error” status

  • Last backup date

    • Date of the last backup

    • In this column, additional information might be shown, e.g. regarding the last backup backup error

      • Backup error message
  • Backups

    • Disabled

      • When the backup schedule is not set

    • Pending

      • When the backup has not yet started and is in the queue

    • In Progress

      • Backup in Progress

    • Auto

      • Backup is scheduled

      • The next backup date will also be displayed:

        • Next backup date for the schema
  • Actions

    • Backup now

    • Restore

    • Schedule Backup

      • You can schedule backup using a corn expression

    • Configure

      • After clicking the Configure button, you will see information regarding the schema, from where you can also delete the schema from the app:

      • image-20240816-084632.png
        • To delete the schema, click the “Delete schema“, type the schema name in the “Schema name“ field and click the “Delete schema“ button in the popup:

        • image-20240816-084811.png

After restoring the schema on the current instance, the schemas will be automatically synced.

If you delete an active schema (meaning it exists in Assets (Insight)), the schema will reappear after a sync.

If you delete the schema with the Deleted status, schema will be permanently deleted, including all the corresponding backups.

You can also use additional filters for filtering the schemas in the grid:

  • Hide deleted schema toggle

    • By turning off the toggle you can hide the deleted schemas

  • Instances (single-select)

    • You can choose the instances for which you would like to see the schemas

    • Instance type

      • Cloud

      • Another Cloud

      • DC/Server

    • Status

      • Active

      • Inactive

      • Deleted

      • Sync Error

    • Search

      • You can search the scheme by name. After typing the first letter in the Seach field, the schema grid will be automatically filtered according to the search term.

    • Clear Filter

      • Will appear if at least one filter is selected and will clear all the selected filters:

image-20240507-113052.png
Clear Filter

The filters will remain selected if you navigate through the app or refresh the browser window.

Dates and times are shown based on UCT according to your timezone settings. Daylight savings are also elaborated while showing last and next backup dates and times.

When there are more than 25 schemas in Assets (Insight), pagination will appear below the Schema Grid.

Schema Backup

You can back up the desired schema either manually or by scheduling regular backups.

Manual Backup

To back up the desired schema, click Backup now button under the Actions of the schema grid. After clicking the button you will see the confirmation popup:

image-20240422-115406.png

You can backup also attachments by enabling the toggle, if the Assets Attachments Backup & Migration app is installed on Cloud. See Backup and Restore of object Attachments for more details.

You can add descriptions to certain backups for further simplifying the backups management. You can later view and edit the description if needed. After adding the description (not mandatory), click the Yes button to start the backup. You can check the backup process status along the corresponding schema in the Synced schemas grid:

Backup pending status

After the backup is started, it will go into the “IN QUEUE“ status and “IN PROGRESS“, when the backup process is started.

When the backup is started you can stop the process anytime, by clicking Stop button:

Stop the backup

After you click the button, you will see the confirmation popup either to stop the process or abort the termination of the backup:

Confirmation popup for the backup termination

The terminated backups can be seen in the Audit Log.

After the backup is finished, you can check the status below the Last backup date column. If the process was successful, you will see the date and time of the last backup. Otherwise, you will see the error message, explaining the problem with the backup.

In case of known Atlassian issue - if the schema contains circular references between object types, you will see the corresponding error message, indicating object types:

image-20241002-142331.png

If this happens, please follow the workaround recommended by Atlassian (JSDCLOUD-12692) and backup the schema again.

If a schema contains many objects, backup may take up to hours. Also, please keep in mind that if you start more than one parallel backup, it may also take long due to the Request per-minute limitation of the corresponding Atlassian REST API.

After the backup is completed, icons will be backed up in the background, which may also take several hours, depending on the number of objects. Therefore, if you are trying to restore backup immediately, icons may not be included.

After the backup is completed, the new item will appear on the Restore page, under Available backups (see Restore and Migration Guide for more details):

image-20240128-175647.png
Completed backup in the “Restore” page of the schema

Empty schemas cannot be backed up. If you try to backup such schema either scheduled or manually, you will see an error message by te corresponding schema.

Backup error message

Due to the limitation of the Database, if size of the object equals or exceeds 16MB, such an object will not be backed up!

The comments can be backed up if the schema contains less than 30,000 objects. If the schema contains more than 30,000 objects, the comments backup status will be THRESHOLD and the corresponding information will be given after hovering status: “The schema contains more than 30,000 objects, and the comments were not backed up“.

image-20240422-214346.png

Please try not to change anything in Assets (Insight) while the backup is running! If schema contains many avatars, the very first backup may take long. In addition, after the backup is completed, the avatars will be backed up in the background. This means that if you try to immediately restore a schema after the backup is finished, avatars may not be restored. The exact time depends on the quantity and sizes of the avatars, but with a considerable number, we recommend waiting at least 1 hour until restore.

Backups are stored for 1 year after the backup date.

If you want to restore objects in issue fields, the user indicated in “current connection“ must have valid permission to view and edit those issues before the backup has started.

Schedule Backup

A backup schedule should be configured for an individual schema. To configure the backup schedule, click on the Schedule backup button, under three dots along the desired schema. The schedule configuration window will pop up:

image-20241104-020042.png
Schema backup schedule configuration popup

You can backup also attachments by enabling the toggle, if the Assets Attachments Backup & Migration app is installed on Cloud. See Backup and Restore of object Attachments for more details.

To switch the backup on, activate the “Enable“ toggle. The green color of the toggle corresponds to “On“ and the grey color corresponds to “Off”.

You can choose between two options - Recommended and Custom. In the case of choosing the recommended time, the most optimal time is defined at the moment and the backup will start every day on that time.

You can also choose your desired schedule for the backup. You can define the schedule at a specific time by choosing from every:

  • Year

  • Month

  • Week

  • Day

image-20240422-114033.png
Defining a custom backup schedule

some of the date/times are dynamically reserved for database maintenance. If you choose that time, you will see the notification to choose another time. In that case, choose any time 2 hours before or after the selected time.

Additionally, you can use Cron expression to further define the schedule.

Cron Expression

To enhance the backup schedule, cron expression is used. A cron expression gives you control over the frequency, compared to the default schedules. It is a simple and straightforward expression to define the backup schedule. You can find more information about how to construct the expression on the following links:

For example, the Cron expression “0 0 * * *“ will run a backup every day on 00:00. Cron expression is a mandatory field. Non-standard cron expressions are not supported (e.g.: @yearly, @annually, @monthly, @weekly, @daily, @hourly, @reboot, etc.).

After deciding on the schedule and filling in the expression, click “Save“ button.

After clicking the “Save“ button, the first backup will be immediately executed. The following backups will be executed according to the defined schedule.

If the Cron expression is not valid (e.g. number of hours is more than 24 or the number of minutes is more than 60), after clicking the Save button, you will see the error message - “Cron expression is not valid”:

image-20240422-114234.png
Cron expression validation error

After editing the Cron expression, the modified schedule will be displayed in the “Next Backup” column in up to 20 seconds (browser refresh is needed to view the modified schedule).

Allowed frequency of backup

The minimum allowed frequency of backup is once per day. If the cron expression implies more frequent backups, it will not be possible to save such a backup configuration and you will see the corresponding message:

Error message while trying to configure backup schedule with more than once per day

Backup of objects in Jira issues

During schema backup, the information about objects selected in Jira issue fields will be also backed up. The corresponding backup status will be shown under “Objects in issues status“ in the schema restore page (Available Backups).

image-20240331-195808.png
“Objects in issues status“

Clicking the “Info“ icon will display the number of the issues, information of which was recorded in the backup. The number shows a number of the unique issues where the objects from this issue are selected and do not depend on the number of fields and the number of objects.

You can check whether all the issues were recorded by comparing this number and finding the number of the issues via JQL in Jira (e.g. by searching all the issues where the corresponding Assets custom field is not empty).

When Insight Assets Backup & Migration is uninstalled, all the backups will be deleted in 24 hours!

Related content