Backing up the server's site data

Source: Internet
Author: User
Tags mysql backup

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

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.