Versions Compared

Key

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


Info

For SmartServer 3.4 and higher, see Backing Up, Restoring, and Cloning the SmartServer

The SmartServer ships with an SD Card inserted into the appropriate slot on the device. The CMS database is located on the SD Card. This SD Card must remain inserted in the SmartServer whenever power is applied to the SmartServer. 

The CMS Storage widget provides the ability to view system information including internal flash memory, CPU utilization, and log sizes, as well as to perform system and database backup, restore, and cloning operations. It also provides the ability to change logging settings (data and/or event logging, and storing on an SD Card).

...

  1. Open the Storage widget.

    Note
    Note: To best view all of the information on this widget, click the Expand button /wiki/spaces/TEMP/pages/44631776  ). 



  2. Click the Edit button (). 



    Note that the Edit button changes to a Save button ().



  3. Select the appropriate checkbox (that is, Save data logging, Save event logging, and/or Store on the SD Card). 



  4. Click the Save button () for logging changes to take effect.



    The new logging settings are stored in the Storage widget.


...

  1. Open the Storage widget.

    Note
    Note: To best view all of the information on this widget, click the Expand button /wiki/spaces/TEMP/pages/44631776  ). 



  2. Click BACKUP.



    A confirmation dialog box appears.



  3. Select BACKUP SYSTEM or BACKUP DATABASE for the backup operation.

    A message similar to the following appears:


    System backup


    Database backup

  4. Click OK to proceed with the desired backup operation.

...

  1. To restore a backup to a new SmartServer, remove power from the new SmartServer.

  2. Remove the SD Card from the SmartServer.

  3. Insert your SD Card with the backup image to be restored into the SmartServer.

  4. Open the Storage widget.

    Note
    Note: To best view all of the information on this widget, click the Expand button /wiki/spaces/TEMP/pages/44631776  ). 



  5. Click RESTORE.



    The Restore dialog box appears displaying the name of the system image to be restored.



  6. Use the SYSTEM and DATABASE tabs to select the type of restore operation you want to perform.


    System restore


    Database restore


    If more than one file is available, a dropdown list will appear allowing you to select the desired file as shown in the example below.


    Dropdown list for a system restore with multiple backup files


    Dropdown list for a database restore with multiple backup files

  7. If multiple backup files are available, then select the file you want to use from the dropdown list for the restore operation.


    Multiple system files example


    Multiple database files example


  8. Click RESTORE to proceed with the restore operation.

    Warning

    This feature overwrites the new SmartServer's Serial Number, Host Name, MAC Addresses, Install Code, SID, and apollo password.

    A message similar to the following appears:



    System restore



    Database restore

  9. Click OK to proceed with the desired restore operation.

...

  1. Open the Storage widget.

    Note
    Note: To best view all of the information on this widget, click the Expand button /wiki/spaces/TEMP/pages/44631776  ). 



  2. Click RESTORE.



    The Restore dialog box appears.



  3. Select the CLONE tab on the Restore dialog box. 

    The Restore dialog box appears displaying the name of the system backup file to be used for the target SmartServer.



    If more than one file is available, a dropdown list will appear allowing you to select the desired file as shown in the example below.




  4. If multiple backup files are available, then select the file you want to use from the dropdown list for the clone operation.



  5. Click RESTORE.

    Warning
    titleWarnings

    This feature preserves the new SmartServer's Serial Number, Host Name,  and Install Code, but changes the apollo password, MAC Addresses, and SID. A target SmartServer should not be cloned with the same backup file more than once. You cannot put two SmartServer clones on the same network.

    A confirmation dialog box appears.



  6. Click OK in the Confirmation dialog box to start the cloning process. 

    Messages similar to the following will appear on the console:

    No Format
    Broadcast message from rebootmanager daemon (Tue 2020-03-10 15:15:02 BST)
    System going down to perform restore...
    going down for reboot NOW
    
    ====================================================================
    ============  Adesto Apollo 2 Backup/Restore Utility  ==============
    ====================================================================
    Version 1.2
    
     * Initializing... OK
    
    SDCard: /dev/mmcblk2p1
    
     * Checking required files...
    
    file 'restore' is present.
    file 'preserve' is present.
    file backups/SmartServer-System-Backup-2020-03-10-114532.tgz is present.
    
    Required files are present.
    
     * Checking files integrity...
    e77de975a4eabefc339dae6f132d8803 - OK
    Files validated.
    
     * Mounting partitions... OK
    
    Filesystem           1K-blocks      Used Available Use% Mounted on
    none                    868600         0    868600   0% /dev
    /dev/mmcblk2p1        30634944   1935896  27119836   7% /mnt/mmc_restore
    /dev/mmcblk3p2         3232312   2164084    884320  71% /mnt/mmc_main
    /dev/mmcblk3p1           16128      8707      7422  54% /mnt/mmc_main/boot
    /dev/mmcblk3p5          884676      7268    815252   1% /mnt/mmc_main/var/apollo
    
     * Preserving Identity...OK
    
     * Unmounting partitions... OK
    
     * Formatting partitions...
    
     * Mounting partitions... OK
    
    Filesystem           1K-blocks      Used Available Use% Mounted on
    
    none                    868600         0    868600   0% /dev
    
    /dev/mmcblk2p1        30634944   1935932  27119800   7% /mnt/mmc_restore
    /dev/mmcblk3p2         3232312      5756   3042648   0% /mnt/mmc_main
    /dev/mmcblk3p1           16128         1     16128   0% /mnt/mmc_main/boot
    /dev/mmcblk3p5          884676       904    821616   0% /mnt/mmc_main/var/apollo
    
    Always mount sdcard for restore.
    
     * Restoring System... OK
    
     * Restoring original identity...OK
    
     * Syncing... OK
    
     * Unmounting partitions... OK
    
    Procedure Complete.
    
    Rebooting in 5 seconds...


  7. To ensure full functionality after the reboot process completes, perform the following steps:

    1. Power-cycle the target SmartServer IoT to ensure full functionality.

      Note
      Note: The target SmartServer IoT may not be accessible over the current IP infrastructure due to IP address changes, and that its password may have changed to that of the source SmartServer IoT.


    2. Verify target SmartServer IoT operations.