Restoring the server data using the command line interface

Last Updated : Nov 08, 2024 |
Prolog information
Use the Command Line Interface (CLI) to restore the server data when the size of a backup file is greater than 10 MB.
Note:
Remove the Geo Redundant High Availability (GRHA) configuration before restoring the database backup. If you restore the backup when GRHA is enabled, GRHA might not work properly. If this happens, remove GRHA and then reconfigure.
  1. Log in to the AE Services as a root user.
  2. To copy the backup file to the /tmp directory, use the following command:
    ADDITIONAL INFORMATION: cp <backup file> to /tmp
  3. To restore the server data, do the following:
    • Run the following command to restore with the GRHA configuration:/opt/mvap/bin/Restore.sh –L </path/to/LargeAESBackupFIle.tar.gz>
    • Run the following command to restore without the GRHA configuration:/opt/mvap/bin/Restore.sh –L -n </path/to/LargeAESBackupFIle.tar.gz>
  4. Run the following commands to restart the services:
    ADDITIONAL INFORMATION: systemctl restart DBService
    systemctl restart aesvcs
    systemctl restart sohd
    systemctl restart nftables
    systemctl restart httpd
    systemctl restart tomcat
    systemctl restart snmpd
    systemctl restart subagent1
    systemctl restart subagent2
    Note:
    Restart if both GRHA and sohd are running.