Technical Tip: Loading an older database via CLI
Description
This article describes that if a database corruption has occurred, it may be necessary to restore an older database.
Note:
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
- SSH to the Control Server and log in with root credentials.
- Navigate to the backup directory and shut down the control processes.
cd /bsc/campusMgr/master_loader/mysql/backup/
shutdownNAC
shutdownNAC
- 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.
- Start Network Sentry processes.startupNAC
Related article:
Technical Note: Loading an older database via administrative UI
