Oempro Backup Instructions

There are times when things can go wrong and your server may have issues which can destroy your database or website.

It is always better that you keep the backup of your database and application files.

Backing up the application files
  1. To backup your Oempro installation files go to your FTP of the website
  2. Download all the application files found under the /your_installation_path/oempro directory.
Backing up your mysql database

There are two ways to backup your mysql database

  1. You can backup the database using phpmyadmin
  2. You can use the shell command to back it up.

Backing up the database using phpmyadmin

  1. Go to your phpmyadmin
  2. Select the database for your Oempro
  3. Click on the “Export” button.
  4. Select the format as “SQL”
  5. Make sure that you select the database structure along with the data for the full backup
  6. Click on the “Go” button to export and save the database file.

Backing up the database using shell command

  1. Login to your server with SSH
  2. Run the command “mysqldump -u [Username] -p [password] [databasename] > [backup_oempro.sql]” – replace the username, password and database with your own username,password and database.
Restoring your application files

To restore your application files follow the steps below.

  1. Upload all the files which were backed up to your oempro folder
  2. Check the config.inc.php under /oempro/data directory and verify all the path’s and database details and modify them accordingly to match the new setup or your server.
Restoring your Database

To restore your database you can use the sql backup using phpmyadmin or using command line.

  1. To restore it with the help of phpmyadmin go to the phpmyadmin interface
  2. Select the database
  3. Click on import tab
  4. Select the backed up sql file and import the same.

In order to restore your database using the command line method follow the steps below

  1. Login to your ssh server
  2. Execute the command “mysql – u [username] -p [password] [database] < backup_oempro.sql”

    After restoring the backup please go to the web url and check whether everything is working fine or not.