MyBB backup

by Hug - 23-01-2015, 06:49 AM
Closed Account
Posts:
2,770
Joined:
Jan 2015
Likes:
140
Credits:
1,306
Reputation:
28
2 Years of Service
#1
OP
Posted: 23-01-2015, 06:49 AM (This post was last modified: 23-01-2015, 06:50 AM by Hug.)
MyBB Backup Creation


Creating a backup of your MyBB forum installation includes 2 major steps. Backing up the database and the web site files for it. Both steps are reviewed in details below.


Creating MyBB Database Backup

By default there are 3 ways to create the database backup using the tools provided by SiteGround and MyBB.

1. You can use the MyBB built-in functionality to create the backup.First of all you need to make sure which is the database used by your installation. This information can be acquired by checking the MyBB configuration file. The file in question is located directly under the MyBB folder:inc/config.phpThe information that you need is at the beginning of the file. Here is an example of how the database information is displayed:
Code:
$config['database']['database'] = 'user_sgmybb';
In this case the database and the database username are the same - 'user_sgmybb'.Note that user will be your cPanel username (all databases for your account will have this prefix) and sgmybb is the actual name you specified for the database. So in the particular case we need to create a backup for the user_sgmybb database. As mentioned there are 2 ways to create the backup using the tools provided by SiteGround.

The other 2 options are available via the cPanel for your hosting account.

2. Use the cPanel backup functionality. To do so,  log in to cPanel for your account -> Backups. Under Download a MySQL Database Backup all databases for your hosting account will be listed. Click on the MyBB database name and a download window will pop up. Use it to download and save the backup locally to your computer. This is the preferred option for creating the backup.3. You can also use cPanel -> phpMyAdmin in order to create the backup of the database. Detailed tutorial how to do so can be found in our MySQL tutorial. Note that this option is relatively less reliable and you might experience issues downloading larger databases via phpMyAdmin.


Creating MyBB Website Files Backup
Prior to downloading the web site files backup, it is recommended to create an archive of the files. It is not a mandatory step but it helps for easier upload/download. Downloading a single archive file will be always faster than downloading all files one by one.To create an archive of your MyBB installation files follow these steps:
  • login to cPanel for your account.
  • Choose File Manager.
  • Navigate to the MyBB installation directory (note that if MyBB is accessible directly via your domain name the installation directory is public_html).
  • You can use the 'Select all' button to select all files in the directory.
  • Click the 'Compress' button. You will be asked for the directory where you would like the archive saved.
To download the backup of your MyBB installation locally to your computer you can use either FTP client or cPanel -> File Manager.
Closed Account
Posts:
1,383
Joined:
Jan 2015
Likes:
124
Credits:
1,276
Reputation:
30
2 Years of Service
#2
Posted: 11-04-2015, 01:10 AM
How can I disable the backup feature on the ACP?
We are!
Posts:
1,044
Joined:
Jan 2015
Likes:
107
Credits:
1,858
Reputation:
25
2 Years of Service
#3
Posted: 11-04-2015, 01:16 AM
(11-04-2015, 01:10 AM)AndresXZ09 Wrote: How can I disable the backup feature on the ACP?
Edit the file:
backupdb.php

Right under the <?php tag, add

Code:
die('Backups Disabled');

--

Located in: Admin CP Directory > modules > tools
Closed Account
Posts:
2,770
Joined:
Jan 2015
Likes:
140
Credits:
1,306
Reputation:
28
2 Years of Service
#4
OP
Posted: 11-04-2015, 01:35 AM
(11-04-2015, 01:16 AM)Kewl Wrote:
(11-04-2015, 01:10 AM)AndresXZ09 Wrote: How can I disable the backup feature on the ACP?
Edit the file:
backupdb.php

Right under the <?php tag, add


Code:
die('Backups Disabled');

--

Located in: Admin CP Directory > modules > tools

meh, I delete the entire file  and replace it with something similar like that Tongue
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)