Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
The CMS IMPORT/EXPORT button is available with SmartServer 3.5 and higher. For SmartServer releases PRIOR to 3.5, and with 2.7 update 1 and Higher, the CMS import/export feature is available with the CMS Settings button. 

...

Warning
title Backup and restore operations are dependent on SmartServer hardware versions

Restore operations are dependent on the SmartServer software and hardware versions for the backup and restore SmartServers. Consequently, you cannot restore a system image on all new SmartServers.

Example: If you backup a SmartServer 3.26 on a dual core SmartServer, then you cannot restore it on a new quad core that uses a Dialog PMIC, which is only supported with SmartServer 3.3 and higher. Doing so could result in the new SmartServer becoming unusable and possibly recoverableunrecoverable.

Therefore, you should backup only the settings and database (not the system) on the old SmartServer, and then on the new Dialog PMIC hardware, install SmartServer 3.3 or higher, and then restore the settings and database.

...

To backup SmartServer database and/or settings, or system, follow these steps:

  1. Save the apollo password for any backed-up SmartServer system image. If you restore a system image onto a new SmartServer, then the new SmartServer will have its password changed to the old SmartServer's password (from the backup image file).

  2. Open the SmartServer IoT CMS.



  3. Click the Import/Export button () located on the SmartServer app bar.



    The Import/Export dialog appears.



  4. Click the EXPORT tab.

    The EXPORT view appears.



  5. Verify the SmartServer from which the contents are to be backed up.

    If you have multiple SmartServers, then select the SmartServers from which the contents are to be backed up using the checkmarks (yellow indicates selected, blue indicates not selected), or use the Select All button () to select all SmartServers.


    Single SmartServer – selected by default for Local CMS


    Multiple SmartServers – select using checkmarks


    All SmartServers – selected by default for Remote CMS

  6. Select the Export Destination using the pulldown menu.
    1. Download – saves the SmartServer backup file to your PC
    2. Local Storage – saves the SmartServer backup file to a specified SmartServer directory



  7. If you selected Local Storage as the Export Destination, then verify or define the backup location in the Export Directory field.

    For Local CMS and backing up to Local Storage, do not change the default /media/sdcard/backups directory setting. Files in this directory do not get backed up to prevent backups of backups from being created. 



  8. If you selected Local Storage as the Export Destination, then then verify or define the backup filename in the Export Filename field.

    For Local CMS and backing up to Local Storage, do not specify an Export Filename


    With Export Filename specified

    Image Added
    Without Export Filename specified

  9. Select the Export Contents:

    • Database and Settings (default) 

    • Database

    • Settings

    • Full System
    • Remote CMS  – for Remote CMS, you can also backup the remote CMS database by selecting the Remote CMS option. You can backup the remote CMS database in the following configurations:

      • Remote CMS database only
      • Remote CMS database, local database, and settings
      • Remote CMS database and local database
      • Remote CMS database and full system


      Local CMS Export Contents


      Remote CMS Export Contents

  10. Click EXPORT.

    If you selected the Settings option only, then the Status column will indicate that the backup is in progress. You will not be able to use the CMS for a few moments until the settings backup is completed.



    If you selected the Database option, or the Database and Settings option, then the Status column will indicate that the backup is in progress and a message will appear stating that the database backup has started. You will not be able to use the CMS until the database backup is completed (about 10 minutes).



    If you selected the Full System option, the Status column will indicate that the backup is in progress and a message will appear stating that the system backup has started. You will not be able to use the CMS until the system backup is completed (about 30 minutes).

...

Example 2: Modify the /etc/hosts file as shown in the figure below:

Image RemovedImage Added
/etc/hosts file

...

To restore a database and/or settings backup onto a new SmartServer, you must first create a database and/or settings backup, as described in the Backing Up the Database and/or Settings, or System section, and then follow the steps below.

  1. Save the apollo password for any backed-up SmartServer system image before continuing with restore operations.

  2. Remove power from the new SmartServer.

  3. Remove the SD Card from the SmartServer.

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

  5. Open the SmartServer IoT CMS.



  6. Click the Import/Export button () located on the SmartServer app bar.


    The Import/Export dialog appears.



  7. If you are restoring a SmartServer 4.3 or prior database onto a SmartServer 4.4 system, then perform the following steps: 
    1. Create a full system backup for the SmartServer 4.3 or prior system as described in the Backing Up the Database and/or Settings, or System section.
    2. Import that full system backup onto the SmartServer 4.3 or prior system as described in the steps that follow.

    3. Update the SmartServer 4.3 or prior system to SmartServer 4.4 using the Update Loader (GLPO) method. See Updating the SmartServer using the SmartServer CMS with an Internet Connection.

  8. Verify the SmartServer to be restored.

    If you have multiple SmartServers, then select which SmartServers are to be restored using the checkmarks (yellow indicates selected, blue indicates not selected), or use the Select All button () to select all SmartServers.


    Single SmartServer – selected by default for Local CMS


    Multiple SmartServers – select using checkmarks


    All SmartServers – selected by default for Remote CMS

  9. Select the Import Source using the pulldown menu.
    1. Upload – retrieves the SmartServer backup file from your PC
    2. Local Storage – retrieves the SmartServer backup file from a specified SmartServer directory



  10. If you selected Local Storage as the Import Source, then verify or define the backup location in the Backup Location field.



  11. If you selected Local Storage as the Import Source, then select the backup file from the Select a Backup File list.


    Local Storage method

    If you selected Upload as the Import Source, then select the backup file from your PC using the browse feature or place it in the Drop files to import area.


    Upload method

  12. Click IMPORT.

  13. If the IMPORT button appears greyed-out (disabled), then verify that the SmartServer is selected. If the SmartServer is not automatically selected, then click the checkmark next to the name of the SmartServer. 

    If you selected the Settings option only, then an indicator will appear showing that the restore is in progress. You will not be able to use the CMS for a few moments until the settings restore is completed.



    If you selected the Database option, or the Database and Settings option, then messages will appear stating that the database file is being loaded to the server and that the restore has started. You will not be able to use the CMS until the database restore is completed (about 10 minutes). 




Deleting Backups

The CMS Devices widget, SEGMENT CONTROLLERS tab provides the ability to view system information including internal flash memory, CPU utilization, and log sizes. It also provides the ability to enable or disable data and/or event logging and to delete backups.

You can delete backup files by performing the following steps:

  1. Open the SmartServer IoT CMS.



  2. Open the Devices widget. Click the Expand button ). 



  3. Select the SEGMENT CONTROLLER tab.



  4. Click the Action button () and select the Delete Backups action.



    The Delete Backups view appears allowing you to select the backup files to be deleted.



    For Remote CMS, an additional option will appear (Remote CMS).



  5. Select the type(s) of Backup Contents that you want to delete (i.e., Database, SettingsFull System, and/or if available, Remote CMS). 

    A list of available backup files is displayed for each of the various backup contents.


    Backup Contents example


  6. Select the backup file(s) to be deleted by clicking the checkmark(s), or click the Select All button ( ) for all files. The checkmark changes from blue to yellow.



  7. Click DELETE SELECTED.

    The backup file(s) that you selected is deleted from the SmartServer and the Devices widget appears.

...