Backup: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "Backups! 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 abl...")
 
(A little bit of wikification)
Line 1: Line 1:
Backups!
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?  
 
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.
Bye-bye forum. Bye-bye members. Bye-bye posts.


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


'course not.
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?
 
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.
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.
When you bought your domain, your host will have given you details on how to access your site's CPanel, or something similar.
<br>There, you'll be able to access something called "phpmyadmin".
<br>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.


There, you'll be able to access something called "phpmyadmin".
===Backing up your database wit=h CPanel===
 
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.
 
Firstly, look for the section labelled "Files" and click on (You guessed it) "Backups".
 
In the new page that opens, you'll see "Download a MySQL Database Backup".


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.
#Firstly, look for the section labelled "Files" and click on (You guessed it) "Backups".
#In the new page that opens, you'll see "Download a MySQL Database Backup".
#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!
It really is as simple as that!
 
<br>So, there really is no excuse for not backing up, OK?
So, there really is no excuse for not backing up, OK?


The second way, is to use phpMyAdmin.
The second way, is to use phpMyAdmin.
 
===Backing up your database with phpMyAdmin===
Again, you'll need your site's CPanel.
Again, you'll need your site's CPanel.


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


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


The rest, I think you'll be familiar with.
==Restoring your database==


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".
==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.
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==
Backing-up your actual forum:


There are two common ways of doing this.
There are two common ways of doing this.


Firstly, you can open your FTP client and download everything to your hard disk, using that.
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).
 
Go to CPanel, look for the section labelled "Files" and click on "Backups".
 
In the new page that opens, you'll see "Download a Home Directory Backup".


Just below that, click on the "Home Directory" button.
The other way is to use your site's CPanel (Or whatever your host uses).


You'll get a requester, so that you can choose where the backup's saved to and you're away!
#Go to CPanel, look for the section labelled "Files" and click on "Backups".
#In the new page that opens, you'll see "Download a Home Directory Backup".
#Just below that, click on the "Home Directory" button.
#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.
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.

Revision as of 18:07, 21 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 wit=h 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: