Why to back up the site, say it is because I am a very frustrating person, often with their own site to toss all kinds of things, and sometimes mistakenly operate, all my backup site is very important, in fact, backup site is a good habit, when the site is attacked or data loss events, Backup is especially important at this time.
Update Frequency:
In general, my update frequency is one months, two updates for the beginning of the month and the month, but updates for the application version are routinely backed up once.
Backup statement:
1, the server file information packaging
Tar-cvzf destination File Original file
Tar-cvzf backup.tar.gz/var/www
2. Backing Up the database
Mysqldump-u user name-p database name > destination file
Mysqldump-u root-p WordPress >/root/wordpress.sql
Basic Information Learning:
1. Tar decompression command
http://blog.csdn.net/eroswang/article/details/5555415 This article explains in detail the various parameters of the tar command.
2. mysql Backup
MySQL backup I use the MySQL Backup tool mysqldump, below an article to explain in detail the use of mysqldump tools and so on.
Http://www.blogjava.net/Alpha/archive/2007/08/10/135694.html
and a basic learning material about MySQL:
http://see.xidian.edu.cn/cpp/u/mysql_ml/
Backing up the server's site data