Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This The Backup Flows feature allows to execute custom commands during backup in addition to the device-specific commands built in Unimusyou to define Custom Backup Flows, which will be executed on Devices during Backup.
Normally a built-in Flow from the Device Driver would be used, but you can override this using Custom Flows to specify exactly how a device should be backed up.

Flows can be assigned to a specific vendorVendor, device type Device Type or tagTag, similar to backup filters. During the backup flow Backup Filters.

Creating a Backup Flow

During the Backup Flow creation process, is possible to you create the entire flow Flow in as a sequential formseries of steps. When a Backup job occurs on a targeted device, during Device communication these steps will be sent to the device in sequential order. Each step represents a particular specific command that must be defined by the userto be sent to the Device. For each “Send command” step "Send command" step, it is possible to define the behavior that will be executed in case performed if the command fails.

  • Skips failed step

  • Fails the whole backup

There are 2 options:

  • Ignore command failure for this step ("Ignore failure" is checked)

  • If this command fails, fails the whole backup

It is also possible to select whether each command's output should be included in the final backup. You can check "Exclude output from Backup" if you don't want the output of this particular command to be consumed into the actual device backup. This is useful for commands you want to run pre or post Backup.

In addition to commands, steps can be added to a flow Flow to set switch the device to configuration or enable into Enable (privileged-exec) or Configure mode, and up to no more than one of these each can be added per to a flow.

The delay between each "Send command" step is also configurable

Conflicts

Due to the fact that a flow can be assigned to devices via a vendor, device type , or tagTag, it there can potentially lead to a situation where a single device is assigned be situations when more than one "Backup Flow" is assigned to a single device. In such this situation system will resolve a , the system resolves the conflict by executing the default commands build Flow built in the Unimus Device Driver. To check if the there is a conflict is presented on device a Device, you can navigate from selected device to Device to the Devices screen, select the device, click Info > Backup Flow Flows, where in the a table are displayed displays all flows Flows to which devices the device is assigned to.

 

Debugging failed Flows

You can easily see what's happening during a Device Backup using our "Debug mode" options. Please head to Zones and enable "Device output logging" for the Zone your devices are in:

Image Added

After the debug is enabled, you can run a backup on the device which fails. After the backup job fails, you can download the device output log:

Image Added

In the log, you will see full CLI communication with the device, and should be able to spot why the backup fails.

More information

You can find more information on Custom Backup Flows, with examples in this Blog article:
https://blog.unimus.net/custom-backup-flows-in-unimus-2-5/