/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*///Save the directory, the path should use a backslash. You need to create it manually. $store_folder = 'D:\\databse_backup'; //Username and password //The account must have access to [all] database and FILE permissions //otherwise some databases can not be backed up. $db_username = "root"; $db_password = ""; $time=time(); $ Nowdir = "$store_folder\\\\".date("Ymd",$time).""; if(file_exists("$nowdir.rar ")) die("File exists.\ "); @mkdir($nowdir); mysql_connect("localhost","$db_username","$db_password"); $query=mysql_list_dbs(); while($result= Mysql_fetch_array($query)){ system (dirname(__FILE__).'\\..\\mysql\\bin\\mysqldump --opt '."$result[Database]-u{$db_username} ".($db_password?"-p {$db_password}":"")." >$nowdir\\\\$result[Database].sql"); echo "dumping database `$result[Database]`...\ "; } echo "\ Winrar Loading...\ "; system( dirname(__FILE__)."\\\\WinRAR\\\\WinRAR.exe a -ep1 -r -o+ -m5 -df \\"$nowdir.rar\\" "$nowdir\\" " ) ; //Remove the file @unlink("$store_folder\\\\".date("Ymd",$time-86400*5).".rar"); echo "\ OK!\ "; > 5. Create a file mysql_backup.bat under D:/php, the content is only one sentence: //This article comes from the computer software and hardware application network www.45it.comphp.exe mysql_backup.php6. Double click the bat The file runs, if it can be backed up, OK, add the task plan in the next step.
7. Add D:/php/mysql_backup to the mission plan, time to choose every day. According to the monitoring results of the server, every morning 5-8 hours flow Peak due to clean-up 5-7 when some databases, you can make it at the 8:00 o'clock.
cited: In the eyes of many network administrators, managing the server may be a relatively simple th
After setting up a web server, the most concerned about the use of th
IIS (Internet Information Server) is a Web service component provided by Windows.
No matter what size you are, there is always a distribution that is suitable. When it comes to buyi
Cloud Application Accident Emergency Response and Notification and Remediation
Weapons: How DNS Server Technology Troubles with Network Faults
Knowledge Lecture: What is Intel VT Virtualization Technology?
How to choose server host in cloud computing era
Windows2003 Domain Rename Tool (1)
Several ways for firewalls to prevent DDOS distributed denial of service attacks
Make your IIS become impeccable
How does the T100 G11 server clear CMOS?
Microsoft reveals key technologies for Windows 2003 R2
What is a remote access server, what does a remote access server mean?
Wget operation under CentOS can not resolve (resolution) problem solution
Analysis: Grid Computing vs Cloud Computing What is the difference?
VISTA weight loss accident removal driver solution
Windows 7 keeps working hard for the user experience [Figure]
2 ways to open Win8 system camera
360 portable wifi does not support win8.1 system What should I do?
Introduction to Linux File System Directory Structure
Win7 system local disk can not open the prompt "restriction" how to do?
Windows 7 pre-release version will expire how to upgrade [Photos]
How to change keyboard input in win8
Win10 Mobile preview version 10512 slow version when to push? Microsoft said it will not push