Building a highly secure E-commerce site: Web site files and database automatic local/off-site dual backup

Source: Internet
Author: User
Tags ftp mysql database backup linux

The previous article introduced the server security aspect in detail, next continues to introduce the Linux server file backup, the database backup, the data security storage related electronic commerce system architecture. There are a variety of solutions for security, where data backup is the top priority.

E-commerce sites pay more attention to data security, data backup scenarios, including local backup, offsite backup architecture. There are a lot of Linux server backup scenarios, this article introduces a popular solution, by writing shell script to complete automatic backup. This framework includes backup Web site files, databases, automatic local backup and FTP upload backup script, complete the corresponding local backup, off-site backup, achieve a two-tier backup solution.

This article highlights:

1. Complete automatic website file and database backup.

2. Write the shell script to complete the automatic backup.

3. Simultaneous automatic local/Off-site dual backup, FTP upload backup.

Backup solution for 4.Linux servers.

5. Including backup Web site files, Web site program files, data files, MySQL database.

6. Automatically completes the backup regularly at regular intervals. Regularly delete old backups, here is automatically deleted 30 days before backup, reuse utilize backup space.

Directory:

First, preparatory work

Second, the construction of high Security E-commerce Web site (web site files and database automatic local/remote dual backup) structure diagram

Third, the website and database automatic local backup and FTP upload backup shell script, complete instance; Backup script for detailed explanation, comment.

In the operation of E-commerce sites, the beginning of the site has been reiterated the need to back up their own data, because too much uncertainty may result in database loss, and most of the basic service providers can not provide daily backup data. Originally this blog provides a backup method, just a little bit, maybe some novice will not very good start. Share one of your own backup scripts today.

As detailed in the Appendix http://jimmyli.blog.51cto.com/3190309/584992 "website operation and maintenance off-site backup scheme and emergency standby mirror Station"

First, the preparatory work:

1. Software Installation

Need to be in advance in the Linux Server installed LFTP,LFTP function more powerful, CentOS Direct execution: Yum install Lftp,debian execution: Apt-get install.

2. Backup directory Establishment

The/home/backup/directory needs to be created on the Linux server.

3.FTP Offsite backup IP account password

You need to create the backup directory on offsite FTP.

If there are few databases on the Linux server, use the storage space of the network base service provider. You can also use a dedicated backup server. According to the size of the application, the size of the data, network conditions, and the actual network resources, hardware resources flexible control.

Second, the construction of high Security E-commerce Web site (web site files and database automatic local/remote dual backup) structure diagram

Related Article

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.