Networked Media Open Specifications

Backup & restore

←IS-04 interactions · Index↑

Supporting backup & restore is a key feature of IS-14. To discuss the various possible combinations of backup and restore, this section utilizes terms explained in the Definitions section.

The Configuration API defines a bulkProperties endpoint which allows:

These mechanisms are used for enabling backup and restore functionality and this section of the specification aims to cover the expectations, behaviour and requirements for the following scenarios:

Note: This does not mean that the backup & restore functionality can only be used in these scenarios.

Definitions

A device, for the purposes of this section, is a physical or logical entity that can be backed up and restored using the procedures described. It may or may not correspond to an IS-04 Device or IS-04 Node.

Backup data set is the set of data retrieved from a device using the backup procedures described. This is represented as an NcBulkValuesHolder object.

Backup validation fingerprint is an optional string in a backup data set that can be used to capture the various versions of the hardware, software and/or firmware that made up a device at the time the backup was performed. The format of the string is defined by the vendor and is opaque to other systems. This could contain information such as:

A device model in the context of this specification refers to all the objects and their properties which are exposed in the configuration API.

A full backup is a backup data set that includes all properties for all role paths of a device model. This is achieved by using the /bulkProperties endpoint.

A partial backup is a backup data set that includes only a subset of role paths of a device model. This is achieved by using the /bulkProperties endpoint.

A modified backup is a full backup or partial backup where the backup data set has been modified by a client. Examples of modified backups include: updating values of existing backup data set properties, adding/removing device model role paths from the backup data set.

General concepts

The restore mechanism achieved by Setting bulk properties for a role path affects the device model by either:

The general pattern for how devices interpret the restore workflow can be explained as follows:

Properties of a role path object within a backup data set will have specific traits described as NcPropertyTrait. These traits are offered so that clients attempting to not restore all properties can use them to filter and only include in the restore workflow specific property traits. One example scenario is when a backup data set of a device is used to restore the state of existing device model objects but prevent any structural changes (creation or destruction of block members). To achieve this a client would exclude the Structural trait from the propertyTraits argument when Setting bulk properties for a role path.

1. Performing a backup

Creating a backup is performed by using the bulkProperties endpoint of a device alongside the Get verb.

In order to retrieve the whole device model (full backup), requests MUST use root as the rolePath. The response contains a validationFingerprint and the values of all the role paths in the device model.

Performing a full backup
Performing a full backup

Partial backups can be created by choosing other role paths. The scope of backups can further be restricted by using a query parameter of recurse=false which will only include the properties of the targeted role path.

It is RECOMMENDED to store the backup file in its entirety and not remove elements from the data set as they might contain dependencies required by some of the role paths.

2. Restoring a full backup data set to a device which is a spare device replacing a faulty unit

There is an assumption that the spare device replacing the faulty unit is the same product type from the same vendor.

There is also an assumption that a full backup has been created of the faulty unit when it was healthy.

The first step is to perform a Validation request to check if the backup data set can be successfully restored.

In order to validate applying the whole backup data set against the device model, requests MUST use root as the rolePath.

The request body MUST include:

Validating a full backup
Validating a full backup

The response MUST include a collection of all target device model role paths with a validation status property and a notices array of property notices. For role paths which have a status which is not a 2XX value the response MUST also include a statusMessage with details of why the validation failed. When there are properties of role path objects which cannot be validated from the values provided in the dataset, these MUST be reported in the notices property as Warning notices.

The backup can be restored by performing a Set request to restore the backup.

In order to use the whole backup data set to restore against the device model, requests MUST use root as the rolePath.

The request body MUST include:

Restoring a full backup
Restoring a full backup

The response MUST include a collection of all target device model role paths with a validation status property and a notices array of property notices. For role paths which have a status which is not a 2XX value the response MUST also include a statusMessage with details of why the restore failed. When there are properties of role path objects which cannot be restored from the values provided in the dataset, these MUST be reported in the notices property as Warning notices.

If devices require a system reboot in order to apply the restore then they MUST perform this immediately after responding to the restore request.

←IS-04 interactions · Index↑