Backup: Difference between revisions From Online Manual

Jump to: navigation, search
mNo edit summary
m (moved Back up to Backup: now we can have it both ways)
(No difference)

Revision as of 17:56, 22 September 2011

Whatever anybody else might tell you, backing-up is the most important thing you can ever do with SMF or any website. If something goes wrong, yes, you may well be able to fix it. If you can't, maybe somebody else can. But what happens if nobody CAN help you?

Bye-bye forum. Bye-bye members. Bye-bye posts.

Now, you REALLY don't want that to happen, do you? 'course not. So, what to do?

You may have noticed that there's a facility in SMF's "Forum Maintenance" section, to backup your database. Very useful. But, what about your actual site? What about restoring the backups?

Firstly, let's deal with the database.

Backing up your database

When you bought your domain, your host will have given you details on how to access your site's CPanel, or something similar.
There, you'll be able to access something called "phpmyadmin".
Now, of course, different hosts will have different ways of accessing that. For the sake of this article, I'm going to give the means of accessing it via CPanel. Other hosts may be different. But, they'll be pretty similar.

Backing up your database with CPanel

  1. Firstly, look for the section labelled "Files" and click on (You guessed it) "Backups".
  2. In the new page that opens, you'll see "Download a MySQL Database Backup".
  3. Under that,click on the name of your database and a requester will open, so that you can choose where that backup should be downloaded to.

It really is as simple as that!
So, there really is no excuse for not backing up, OK?

The second way, is to use phpMyAdmin.

Backing up your database with phpMyAdmin

Again, you'll need your site's CPanel.

  1. Look for the section labelled "Databases".
  2. Under that heading, you'll find "phpMyAdmin".
  3. If you click that, you'll see a page that might, at first, seem somewhat scary.
  4. It IS. Be careful what you do, there, because you can SERIOUSLY break things.
  5. Look at the left-hand pane and you'll see the name(s) of your databases.
  6. Click on one of them and you'll taken to another scary page.
  7. On there, you'll see some tabs, along the top. The one you want is labelled "Export".
  8. When you click on that, you'll get yet another page.
  9. Under "View dump (schema) of database", you'll see "Export".
  10. Just below that, click "Select all".
  11. At the bottom of the page, ensure that "Save as file" is checked.
  12. Then, click "Go".

The rest, I think you'll be familiar with.

Restoring your database

Restoring your database with phpMyAdmin

To restore your backed-up database, you do exactly the same as to backup, except that instead of clicking "Export", you need the "Import" tab and you navigate to your backup file, by clicking on "Choose", under "Location of the text file".

Please, be aware, though, that if you have large databases, it may be not possible to backup using phpMyAdmin, as phpMyAdmin has some file size limits.

Backing up your forum files

There are two common ways of doing this.

Firstly, you can open your FTP client and use it to download everything to your hard disk.

The other way is to use your site's CPanel (Or whatever your host uses).

  1. Go to CPanel, look for the section labelled "Files" and click on "Backups".
  2. In the new page that opens, you'll see "Download a Home Directory Backup".
  3. Just below that, click on the "Home Directory" button.
  4. You'll get a requester, so that you can choose where the backup's saved to and you're away!

This will save your whole site. So, be aware, of course, that this can take a LONG time to do, especially if you have a lot of files on your site.



Advertisement: