Restore Database

You can restore an XCO database from its backup.

About this task

Follow this procedure to restore an XCO database from its backup after a single-node installation on Server.

Procedure

  1. Connect to the SSH session as a root user.
  2. Log in to EFA using the efa login command
  3. (Optional) Transfer the backup from the remote host.
  4. Run the efa system restore command with the required arguments.
    Note

    Note

    Running the efa system restore command without any arguments runs in an interactive mode. It allows you to pick any backup present in /var/log/efa/backup/ or /apps/efa_logs/backup/ location. For more information, see ExtremeCloud Orchestrator CLI Administration Guide, 3.3.0 and ExtremeCloud Orchestrator Command Reference, 3.3.0 .

Example

user@tpvm:~$ efa login
Password:
Login successful.
--- Time Elapsed: 2.019739819s ---
(efa:user)user@tpvm:~$ scp user@remotehost:~/EFA-3.3.0-2-2023-08-30T01-44-39.193.tar ./
user@remotehosts password: 
EFA-3.3.0-2-2023-08-30T01-44-39.193.tar           100%  876KB  28.8MB/s   00:00    
(efa:user)user@tpvm:~$ efa system restore --backup-tar EFA-3.3.0-2-2023-08-30T01-44-39.193.tar 
Performing EFA restore using  EFA-3.3.0-2-2023-08-30T01-44-39.193.tar
Restore operation ID: 4d229051-87db-11ed-8921-5254008962d2
Stopping all EFA services...
All pods are terminated
Restoring databases...
Start services after restore
Restore of encryption keys is completed
Extreme Fabric Automation Stack is now Restored and Ready!
Restore operation is successful
--- Time Elapsed: 6m47.278493209s ---
(efa:user)user@tpvm:~$