Restoring from a USB backup

Restoring from a USB backup returns the controller to the state it was in when the system made the backup. You may restore to a controller other than the one on which the backup was made, provided that the target controller is the same model. The restore procedure does not require access to Workbench.
Prerequisites:
  • The USB flash drive on which the backup is stored.
     
    CAUTION: Only flash drives (USB sticks ≤128GB) are recommended for backup/restore operations. USB bus powered external hard drives often have higher power requirements and so may not function as expected, possibly resulting in permanent damage to the drive or to the JACE-8000. Plugging in an external hard drive may cause the controller to become unresponsive, requiring a reboot.
     
  • A USB-to-micro USB cable (same cable as that used to connect a smart phone to a computer). The Debug port on a controller is a standard Micro-A type USB port for debugging serial communications.
  • A terminal emulator (system shell program), such as PuTTY. You use this program to access the controller’s system shell menu, which lists the restore options.
  • The system passphrase of the system to which you are restoring the backup.
  • The system passphrase used to create the backup. If you are restoring the image to a different controller (another of the same model), or if the system passphrase for the controller on which the backup was made changed since you made the backup, the passphrase required to decode the backup will be different from the current system passphrase.
 
NOTE: For any JACE-8000 converted to run AX, USB Backup/Restore functionality is not supported. Also, the USB port on the device is not monitored for insertion/removal of devices.
 

Perform the following steps:
  1. Set up the terminal emulator program running on your PC with the following settings:
    • baud rate: 115200
    • data bits: 8
    • parity: N
    • stop bits: 1

    For details on using a serial connection to this port, see “Secure storage and the SD card”, “Preparing for new JACE commissioning” and System shell” topics in the JACE-8000 Install and Startup Guide.

  2. Ensure that the controller’s power is off.
  3. Connect the USB-to-microUSB cable from the computer to the controller’s microUSB port (Debug port).
  4. Insert the USB flash drive that contains the backup into the USB port.
  5. Press and hold down the backup and restore button throughout the boot-up process (approximately 5 seconds) until the button press is detected and this confirmation banner displays:
    *******************************************************
      Backup/Restore button press detected.  Release button
      now to proceed.
    *******************************************************
  6. Release the backup and restore button once the banner displays.

    On detecting the button release, the system begins a 10-second countdown, which displays as shown here:

    Press any key to restore from USB backup.
    If no key pressed, factory recovery will begin in 10 seconds
    
    Recovery begins in 9 seconds
    Recovery begins in 8 seconds
    Recovery begins in....
  7. Press any key during the 10-second countdown to restore from a USB backup (and to prevent the system from entering factory recovery mode).
     
    CAUTION: If no key press is detected during this 10-second countdown, then the factory recovery process begins at the moment the countdown finishes.
     
     
    NOTE: In Niagara 4.7U1 and later, the presence of a USB device inserted in the USB backup/restore port prevents you from accidentally launching the factory defaults recovery process while attempting to restore a backup. If a USB device, of any type, is inserted in the backup/restore port, then recovery is skipped. Consequently, when factory defaults recovery is desired, no USB device can be inserted in the USB port.
     

    The system enters the USB restore mode and the following banner displays:

    *******************************************************
      Restore from a USB Backup
    *******************************************************
    
    Existing Niagara and platform installation will be completely removed!
    This includes
      licenses
      TCP/IP and WiFi configuration
      platform credentials
    
    If restoring a backup from another unit, you will need to
    install a new license.
    
    TCP/IP configuration and platform credentials will be set to values
    in the backup.
    
    Niagara daemon and station will be killed if they are currently running
    
    Enter the system passphrase for this system to proceed, or return to exit 
    and reboot
  8. At the passphrase prompt, enter the current system passphrase for the controller.
    One of the following happens:
    • If the entered passphrase does not match the system passphrase for this controller, after prompting a second time and no match, the backup and restore LED flashes rapidly (200mS on, 200mS off) and it prompts you to reset the system.
    • If the entered passphrase and the passphrase stored on the controller match, the system waits while the USB drive mounts, this can take a few minutes. The following message appears:
      Waiting for USB drive to mount.  Press any key to quit and reboot.

      Once USB drive is detected, the following message and options display:

      USB drive detected
      This platform is Qnx-TITAN-61BA-B6DB-88FE-4A31
      Please make your selection below
      1) Abort Recovery/Restore mode
      2) Show backups for other host IDs
      3) Qnx-TITAN-61BA-B6DB-88FE-4A31_20151119154109

  9. Type the number for a listed backup file name (for example: 3) or other option and press Enter.
     
    NOTE: The backup file name is the name of the backup file stored on the USB flash drive:
    (hostid (unique host ID of the controller), underscore (_) timestamp)

     
    The system prompts you to enter the passphrase for the backup file.
  10. At the prompt asking if the backup file’s passphrase is the same as the system passphrase for the controller, type Y (yes) or N (no).
    • If Yes, then the system passphrase entered in the earlier step is used to decode the backup.
    • If No, you must enter the passphrase for the backup file to decode the backup.
  11. If you entered N in the previous step, at the prompt enter the passphrase for the backup file, and confirm it.
    The restore begins.
     
    CAUTION: Once a restore begins, do not interrupt the process by removing the USB flash drive, disconnecting the power, or pressing the backup and restore button again. If you do not allow the restore to complete, the controller could be left in a non-functional state.
     

    When the restore successfully completes, the backup and restore LED turns off and the system displays a message indicating that the restore is complete and that the controller requires a reset.

  12. Turn the controller’s power off and back on again.