All phpopen source content management systems are the same:
1, are written using phpprograms, and the data are stored in mysqldatabase, LAMP is the best deployment environment.
2, The core programs of its website are relatively fixed, such as joomla!, dedecms, phpwind, ecshop, etc. , even if the program version numbers are inconsistent, the official provides a perfect upgrade solution.
3, The template of the website is independent, and users can make their own satisfactory template according to their own preferences. When the
4 and phpcms systems are doing website migration, their principles are the same, but the methods are slightly different. If you have not made major modifications to the core program of the website, you can directly install a new content management system (CMS) on the new php space, and then restore the mysql database and restore the website template Files, regenerating files, these are the general steps for website migration.
5, Since it is open source , users can easily complete the secondary development of the content management system (CMS) according to the official help manual.
Based on the same points analyzed above, when we are doing website data backup work, should we distinguish based on the characteristics of the php open source content management system, which data is important and needs us to backup first, and which data is secondary? Data can be backed up later. Avoid doing unprioritized work and only discovering that the required data is not fully backed up when a disaster occurs. Wouldn’t it be tragic if such an incident happened? Therefore, we analyzed the excellent open source content management systems on the Internet and summarized a set of more scientific website data backup methods to allow users to prioritize and back up the best.
1. What data is the most important?
I think, MYSQLdata is the most important, should be prioritized(Multiple methods) for backup. MYSQLThe database is unique and cannot be "Renewable Resources", mysqldata stores the content of the entire website, which is accumulated over many years through the hard work of the webmaster. If the crystal is thrown away ( or damaged ), you have to start all over again. The rest, such as website templates and website core programs are lost ( or damaged ), you can pay money to rebuild the website as it is. However, if the website mysqldatabase is lost, you can buy it back with money. ?You can’t, so, mysqldata is the most important.
2. Back up website data in a scientific way
First understand the characteristics of your own open source cms system, and then develop a scientific and reasonable backup plan to complete the backup work efficiently. The best backup solution for Hong Kong/USA phpvirtual host is:
A, priority backupmysqldatabase, various are introduced on the multi-backup forum Backup method of mysql database. Users can refer to the Imperial Backup King Website Migration Helper and each phpapplication mysqldatabase backup plan arrangement for help information.
B, Backup website template. This is something that I spent a lot of effort and money on. It is the "face" of the website. It is very important and ranks second. If you suddenly forget in which directory the website template file is stored, you can go to the official website of the open source system and check the help manual to find it easily.
C, If the website has undergone secondary development(or modified the core program), then please back up the files you changed.
D, If a webmaster wants to build a website, he must do it SEOoptimization, please put your optimization rules and related information (such as site keywords, website description information, etc. )Back up.
E, If your website has the pseudo-static function enabled, please back up the .htaccess file. The URL structure of the entire website depends on it. If it is lost, it will be very troublesome
F, Back up other things, such as 404error page, 301jump and other small things
Three, I am lazy, I don’t want to take so much trouble, directly and simply Isn’t it enough to back up the entire site
I also support this point of view, but what is the purpose of our backup?It is to give the website"a second life" after a disaster strikes , give yourself a chance to make mistakes. The cunning rabbit still has three caves, why can't we make one more backup?What if something happens to your first backup? people. So I recommend a prudent plan. The above introduces how to back up the PHP content management system, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.