Thai SMF
December 08, 2009, 09:54:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
 1 
 on: April 11, 2008, 04:58:24 AM 
Started by Black - Last post by Black

Backing up your forum

A lot of web service providers say they do backup of all the files, but my opinion is not to take their word for granted. We have put in a lot of efforts and time in creating our forums,so if we lost them, then all our hard work would have been in vain. Backing up our forums at least once a week, makes sure that we never loose too much of our work in case of a server crash, and it will make us sleep better at night.  ;) It is easy and fast, so there is no reason for not doing it.

The way I see it we can make a backup in 4 different ways.

1.Through ''Forum Maintenance'' in the Admin Panel

When backing up this way it is better to do one backup with the ''the table structure'' option checked and another one without. So if later on,you will be restoring to a database in which the tables are already built, you can use the backup copy ''without the table structure'' and the other way around.

2.Through phpmyadmin at the Control Panel of your host

Open phpMyAdmin.
1. Click Export in the Menu to get to where you can backup you MySql database.
2. Make sure that you have selected to export your entire database, and not just one table. There should be as many tables in the export list as showing under the database name.
3. Select"SQL"-> for output format, Check "Structure" and "Add AUTO_INCREMENT" value. Check "Enclose table and field name with backquotes". Check "DATA", check use "hexadecimal for binary field". Export type set to "INSERT".
4. Check "Save as file", do not change the file name, use compression if you want. Then click "GO" to download the backup file.

Note If you have large databases it may be not possible to backup using phpMyAdmin, as phpMyAdmin has some file size limits. So, in this case you will  to use the command line tools that comes with Mysql. I came across this method recently and I am currently testing it. So, use it at your own risk

1. Change your directory to the directory you want to dump things to:

user@linux:~> cd files/blog

2. Use mysqldump (man mysqldump is available):

user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver
 -u mysqlusername -p databasename (tablename tablename tablename) | bzip2
 -c > blog.bak.sql.bz2

Enter password: (enter your mysql password)
user@linux~/files/blog>

Example:
mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp | bzip2 -c > blog.bak.sql.bz2

Enter password: my-password
user@linux~/files/blog>

The bzip2 -c after the pipe | means the backup is compressed on the fly.

Note: Compressing db's on the fly is only appropriate for small forums. -For large forums its best to compress after the dump due to it loading everything in memory when done on the fly.

Thanks to Tony for bringing this to my attention and reminding me to include it


3. The third method of making a backup is to use the create_backup.php tool created by Unknown, which you will find it attached at this post

Upload the create_backup.php tool to the same directory where your smf files are,point your browser to it and follow the instructions.

 i.e. www.yoursite.com/forum/create_backup.php

Note that ''forum'' stands for the directory where your smf files are located. If your smf files are located to same other directory, then replace ''forum'' while pointing your browser with the name of that directory.
Or if your smf files are in the root directory, then point your browser to:
www.yoursite.com/create_backup.php


4. Using Java Backup Tool (Windows). I have never used this method, so I can not comment on its efficensy


Restoring the database

1. Through phpmyadmin at the Control Panel of your host

Open phpMyAdmin.
1. Click Import in the Menu.
2. Choose Location of the text file.
3.Browse to your backup of the database that you have stored in your computer
4. Choose Character and Format of imported file
5. Click Go


Restore without phpMyAdmin

The restore process consists of unarchiving your archived database dump, and importing it into your Mysql database.

Assuming your backup is a .bz2 file, creating using instructions similar to those given for Backing up your database using Mysql commands, the following steps will guide you through restoring your database :

1. Unzip your .bz2 file:

user@linux:~/files/blog> bzip2 -d blog.bak.sql.bz2

Note: If your database backup was a .tar.gz called blog.bak.sql.tar.gz file, then,

tar zxvf blog.bak.sql.tar.gz

is the command that should be used instead of the above.

2. Put the backed-up sql back into mysql:

user@linux:~/files/blog> mysql -h mysqlhostserver -u mysqlusername
 -p databasename < blog.bak.sql

Enter password: (enter your mysql password)
user@linux~/files/blog:>

Now, as we mentioned above, phpMyAdmin has some file size limits so if you have large databases it may not be possible to backup using phpMyAdmin. In that case we can restore the backup in 2 other different ways, which are as follow:


1.Restore_backup.php tool created by Unknown, which can be found attached this post

Upload the restore_backup.php tool to the same directory where your smf files are,point your browser to it and follow the instructions.

 i.e. www.yoursite.com/forum/restore_backup.php

Note that ''forum'' stands for the directory where your smf files are located. If your smf files are located to same other directory, then replace ''forum'' while pointing your browser with the name of that directory.
Or if your smf files are in the root directory, then point your browser to:
www.yoursite.com/restore_backup.php

2. The other way is through BigDump: Staggered MySQL Dump Importer
 

 2 
 on: April 05, 2008, 05:10:51 PM 
Started by Admin - Last post by Admin


From time to time we get asked why Simple Machines software isn't released under a license certified by the Open Source Initiative. The point can be made that Simple Machines software isn't Open Source as described by the OSI. But on the other hand you can do nearly the same things with our software that you can with an OSI certified project.

You can modify the source code, distribute instructions to modify it, you can view the code and suggest improvements to it.

However you may not:

   1. Modify the copyright notice displayed (the same can be said for GPL software.)
   2. You are not allowed to redistribute the forum/software itself, without written permission.

These two issues popped up on our radar screen when the project was still called YaBB SE and was released under a GPL license. They were mostly caused by people misunderstanding the terms in that license, but there were also several incidents where people misused the license and basically stole the hard work of our volunteers so they could package it as their own.

Obviously this caused quite the uproar with the dedicated people who make this project possible. So it was decided that Simple Machines should have its own license that would keep the ideas of Open Source alive but would fully protect the rights of the team as copyright owners. All of this was done in conjunction with a copyright lawyer to guarantee the legality of the Simple Machines License.

Sometimes people ask us: Why do you care that people are redistributing it? and the reason is that although we believe in giving back to the Open Source community, we also believe that the volunteers that make up this project deserve the credit. On top of that, allowing unlimited redistribution encourages project forking and could lead to confusion about what versions are supported. By maintaining and allowing only a single version of each of our products, we can ensure the integrity of the code base while making sure that the quality of each product is maintained. So, you could say that everyone wins from it.

Don't forget that redistribution is allowed if you have written permission. For example, SMF is currently distributed through Lycos' 1Click! Service, GoDaddy and Fantastico. If you would like to redistribute Simple Machines software, please email us.
Conclusion

Simple Machines provides you with software that you can modify and improve as you see fit, but you cannot redistribute the entire modified package unless you have a written permission. You can only distribute the instructions on how to modify the source code. Under no circumstances would you be allowed to alter or delete the copyright, just as you wouldn't be allowed to do that if it was released under GPL. But see our software as Open Source, we have outlined the playing field of what you can and cannot do a bit more clearly.

 3 
 on: April 05, 2008, 05:09:55 PM 
Started by Admin - Last post by Admin

SMF illustrations

Simple Machines Forum — SMF in short — is a free, professional grade software package that allows you to set up your own online community within minutes.

Its powerful custom made template engine puts you in full control of the lay-out of your message board and with our unique SSI - or Server Side Includes - function you can let your forum and your website interact with each other.

SMF is written in the popular language PHP and uses a MySQL database. It is designed to provide you with all the features you need from a bulletin board while having an absolute minimal impact on the resources of the server. SMF is the next generation of forum software - and best of all it is and will always remain completely free!

Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 3 Public | SMF © 2006–2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!