How to back up the PHP content management system

Source: Internet
Author: User
All PHP The open source content management system has the same nature:

1 , are used PHP programming, data are deposited MySQL database, LAMP is the best deployment environment.

2 , the core program of its website is relatively fixed, such as joomla! , Dedecms , Phpwind , Ecshop and so its core program is relatively fixed, even if the program version number is inconsistent, the official also provides a perfect upgrade plan.

3 , the template of the website is independent, the user can make their own satisfactory template according to their own liking.

4 , Phpcms when the system is doing the site migration, its principle is interlinked, but the method is slightly different. If you have not made any major changes to the site core program, you can install a new Content management system (CMS)directly in the new PHP spaceand then restore MySQL database, restore site template files, regenerate files, these are the approximate steps for site migration.

5 , since it is open-source , user can easily complete the content management system according to the official Help manual (CMS) development of two times.

According to the above analysis of the same point, we do the site data backup work, should be based on the characteristics of PHP Open Source Content management system, clear those are important data, need our priority backup, those belong to secondary data, can be backed up. Avoid the cram of the work, in the event of a disaster only to find that the required data is not backed up intact. Is it tragic if such an event occurs ? Therefore, we have analyzed the excellent open source content management system on the Internet, summed up a set of relatively scientific methods of data backup, so that users distinguish between primary and secondary, the preferred backup.

First, what data is the most important ?

I think thatMYSQL data is the most important and should be backed up in priority ( multiple methods ) . MySQL database is unique and is not " Recycled Resources ",MySQL data stored in the entire site content, is the webmaster hard work, perennial accumulation of crystallization, lost ( or damaged ) you have to start all over again. The rest of the site template, the site core program is lost ( or corrupted ) can be the same as the original way to send money to do, however the site MySQL The database is lost, can you buy it back with money? ? you can't, so say, MySQL data is the most important.

Ii. scientific methods to back up website data

First understand the characteristics of their own open-source cms System, and then develop a scientific and reasonable backup scheme, the efficient completion of the backup work. The best backup solution for Hong Kong / US php Virtual hosting is:

A , priority backup MySQL Multi-Backup forums that describe a variety of MySQL the backup method of the database. Users can refer to the Empire Backup King website Migration Good Helper and the MySQL database backup scheme under each PHP application to get help information.

B , back up the site template. This is to spend the effort and money of things, is the site's " face ", very important, ranked second. If you forget the site template files in which directory, you can go to the official website of the open source system to check the Help manual, you can easily find.

C , if the site has been developed two times ( or modified a core program ) , then please back up the files you have changed.

D , webmaster to do a site is definitely to do SEO optimize your optimization rules and related information ( such as site keywords, website description information, etc. ) back up.

E , if you have a pseudo-static function on your website, please back up . htaccess files, the entire site of URL The structure depends on it, it will be very troublesome to lose it.

F , and other things to back up, such as 404 error page, 301 Jump and other small things back up

Third, I am lazy, do not want to be so troublesome, direct, simply to do a whole station backup not on it

I also support this view, but what is the purpose of our backup ? after the disaster comes, give the website " Second Life " , give yourself a chance to make a mistake. There are three caves in the sly rabbit, why can't we do a backup more ? If your first backup was unexpected and how ? looking at shouts? ? I am a cautious person. So I recommend a cautious approach.

The above describes how to back up the PHP content management system, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.