Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

To restore backup:

  1. Download the backup file from FTP server to master server and extract the zip file.
  2. It will have two files:

    # database_name.gz
    # solusvm.conf
  3. Extract the database file like:

    # gunzip database_name.gz
  4. Restore database using the command below as an example:

    # MYSQL_PWD=$(cat /usr/local/solusvm/includes/solusvm.conf \
    | awk -F ":" '{print $3}') mysql $(cat /usr/local/solusvm/includes/solusvm.conf \
    | awk -F ":" '{print $1}') -u$(cat /usr/local/solusvm/includes/solusvm.conf \
    | awk -F ":" '{print $2}') < database_name
    Note: replace `database_name` with the actual name. Also, you can fetch the required information about database connection manually from /usr/local/solusvm/includes/solusvm.conf file.
  • No labels