Skip to main content
FortiKoala
Staff
Staff
September 28, 2018

Technical Tip: Loading an older database via CLI

  • September 28, 2018
  • 0 replies
  • 1058 views

Description

 

This article describes that if a database corruption has occurred, it may be necessary to restore an older database.

Note
  • Any hosts registered since the date and time of the older database will become rogue again once the database is restored. 
  • Any devices added to Topology since the older database time will also be removed.

 

Scope

 

FortiNAC.


Solution

 

  1. SSH to the Control Server and log in with root credentials.

  2. Navigate to the backup directory and shut down the control processes.

cd  /bsc/campusMgr/master_loader/mysql/backup/
shutdownNAC
 
  1. Load the desired database.

../ydb_restore_full_backup  <filename>
 
Example:  
 
../ydb_restore_full_backup NetworkSentry_DataBase_BackUp_2017_05_29_01_01_2
 
The command prompt will return once the database is loaded.
 
  1. Start Network Sentry processes.
     
    startupNAC
Related article:

Technical Note: Loading an older database via administrative UI