How to let the system automatically back up the site data sharing experience

Source: Internet
Author: User

After the rebirth of their own web site backup data used a very soil method, used to winrar batch processing backup function, hope to some friends can use.

My server configuration is WINDOWS2003+IIS+PHP+MYSQL5.

First the server needs to install a winrar, the WinRAR installation directory to create a batch file (Gamefxp.bat) content is:

Echo

net stop iisadmin/y

net stop MySQL

WinRAR a-ag-yy.mm.dd d:\bak\gamefxp\gamefxpdata D:\mysql\data\gamefxpdata

net start MySQL

net start w3svc

Then in the Control Panel in the task plan to choose a time to run this batch file, this batch is to stop their own web site to back up their MySQL database, the idea is to stop the IIS service, then the MySQL server, and then run WinRAR for the current time to backup, "D : \bak\gamefxp\gamefxpdata "This is the address where you back up your store, and" D:\mysql\data\gamefxpdata "represents the address you have stored in your database. The last backed up files are displayed in the D:\bak\gamefxp\gamefxpdata directory, and the batch backup will automatically restart IIS and MySQL.

Although this method is very good soil, but very practical, I hope webmaster friends can back up more than backup.



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.