How to backup and restore correctly Microsoft defender for IOT

Guillaume Dumont 5 Reputation points
2023-02-17T09:49:27.5233333+00:00

Hello,

I just tried to backup my sensor config and then tried a restore through the built in tool but it is not work
User's image

I have tried directly with the .tar.gz created by the system but restore only takes .tar file and when I put the .tar file it doesn't work.

How am I supposed to do?

Any documentation? Guide?

Are backup too here sufficient to restore a fully broken sensor (not physically)?

Cheers

Guillaume

Azure Internet of Things
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2023-02-22T19:42:23.94+00:00

    Hello Guillaume Dumont,

    Thanks for reaching out on this forum.

    Did you try to verify the downloaded backup file? To backup using the sensor console, you need to access the sensor using an SFTP client, sign in to an administrative account, and download the backup file from the default location /var/cyberx/backups

    To restore a backup from the sensor console, the backup file must be accessible from the sensor.

    • To download a backup file:
      1. Access the sensor using an SFTP client.
      2. Sign in to an administrative account and enter the sensor IP address.
      3. Download the backup file from your chosen location and save it. The default location for system backup files is /var/cyberx/backups.
    • To restore the sensor:
      1. Sign in to the sensor console and go to System settings > Sensor management > Backup & restore > Restore. For example: Screenshot of Restore tab in sensor console.
      2. Select Browse to select your downloaded backup file. The sensor will start to restore from the selected backup file. 1- When the restore process is complete, select Close.

    To backup and restore Microsoft Defender for IoT correctly, there are a few steps you can follow:

    1. Use the built-in backup tool to create a backup of the sensor configuration. This will create a .tar.gz file that contains the configuration data.
    2. Copy the .tar.gz file to a secure location, such as an external hard drive or cloud storage.
    3. To restore the configuration, use the built-in restore tool in Microsoft Defender for IoT. This tool requires a .tar file, not a .tar.gz file.
    4. To convert the .tar.gz file to a .tar file, you can use a tool like 7-Zip or WinRAR. Extract the contents of the .tar.gz file, then create a new .tar file using the extracted contents.
    5. Use the restored configuration to reconfigure the sensor.
    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.