Creating Backups for MyBB

Creating Backups for MyBB Title Image

Different types of site backups serve different situations. While InMotion offers a full Backup Manager, and cPanel has the capability for full account backups, there are times when a more precision backup solution is in order. It’s easy to create backups for MyBB using cPanel’s file management tools. It can be a good idea to make these when transferring just the site, or before experimenting with new plugins. Read on for details on how to carry out these backups.

Creating Backups for MyBB

The following steps will let you backup and restore your site. More consistent backups are better for the sake of security, but this type of backup is great to have in addition to ‘standard’ backups when you are experimenting with new site designs and want one extra layer of backups just in case something goes wrong.

Note: these steps go over how to backup your site without using Backup Manager or any of cPanel’s built in backup tools. You may find that one of those serve your purpose better, if you have them available.

Backup Your Database

  1. Head to phpMyAdmin in cPanel.
  2. Click on your MyBB forum’s database on the left.
  3. Click on the Export tab at the top.
  4. For our purposes, leaving the selection as Quick will be fine. If you’re a database pro, though, feel free to explore the Custom options!
  5. Leave the file as an SQL file. This will be easy to restore.
  6. Click Go and save the database file somewhere secure.

Backup Your Site Files

  1. In cPanel, open up File Manager.
  2. Find the site directory for your MyBB forum.
  3. Right-click on the directory and select Compress.
    compress site files
  4. For our purposes, there is no difference between a Zip or Tar archive, so leave Zip selected and click the Compress File button.
  5. Find the compressed site directory, right-click on it, and select Download. Save this archive somewhere secure.

Restoring Your Site

Restore Files to the Site Directory

  1. In cPanel, open up File Manager.
  2. If there is already an existing directory for an old or corrupted version of your site, right click on it and rename the directory. I like to add a date to the beginning of the name so that I know exactly when I switched out site versions.
  3. Click the Upload button towards the top of the File Manager. This will bring you to a screen where you can upload the site backup you’ve downloaded. Select the file that you need to upload and it should upload to your server. Click the Go Back option at the bottom to return to file manager.
    upload site files
  4. Find the file you uploaded, right-click on it, and select Extract.
    extract files
  5. If you’re restoring a site directory, you probably don’t need to add a file path since the site was likely in your home folder. Leave the path blank if you are unsure and click Extract File(s).
  6. Close the informative box and, if all went well, your site files have been restored. Now, you’ll need to import the site’s database backup below.

Import the Database Backup

  1. Once logged into cPanel, go to phpMyAdmin.
  2. Click on your MyBB forum’s database entry on the left.
  3. Click on the Import tab near the top.
  4. On the import screen, press the Choose File button and select the database that you created above when you made your database backup.
    import the database
  5. Leave everything else set to default and click Go at the bottom of the page.
  6. When the database has been imported successfully, you should see a message at the top of the page similar to: Import has been successfully finished, ## queries executed.

Troubleshoot Common Database Issue On Restore

If you’ve transferred a MyBB site from one server to another, uploaded the database, and are still receiving an SQL error, chances are that the database information in your configuration file (inc/config.php) does not contain the correct database information. Open that file in the editor in cPanel’s File Manager, and update the database name, user, prefix, and password to match the one set up in cPanel. You may need to reset the database password first to get everything to match.

Install WordPress, Drupal, and other programs in just a few clicks with Softaculous Instant installer.
InMotion Hosting Contributor
InMotion Hosting Contributor Content Writer

InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!

More Articles by InMotion Hosting

Was this article helpful? Join the conversation!

Questions about our MailChannels Deployment? We have answers and are here to help!Learn More
+