We use the automatic batch processing program to back up the data. It can generate a backup file on a given day and save the data on a daily basis to a corresponding directory, it should be implemented in combination with windows scheduled
Using MySQL in Windows: automatic and scheduled backup, windowsmysql
I. Write backup scripts
rem auther:www.yumi-info.comrem date:20171222rem ******MySQL backup start********@echo offforfiles /p "E:\mysql\MySQL BackUp" /m backup_*.sql -d -30 /c "cmd
First: Create a new batch file Backup.datThe code is as follows:net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%//ynet start MySQLNote: There are spaces in the path in the batch command, you
The first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%
First: New batch file Backup.dat, which enters the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%//ynet start
The first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program files/mysql/mysql Server 5.0/data/piaoyi/*.*" d:/db_backup/%date:~0,10%
Transferred from: https://www.cnblogs.com/frankielf0921/p/5933127.htmlThe first type: Create a new batch file Backup.dat, enter the following code:
The code is as follows
Copy Code
net stop MySQLxcopy "C:/Program
A Linux server scheduled backup
The first step is to create a new *.sh file.
New in Home directory
autobackupmysql.sh
#!/bin/sh# File:/home/mysql/backup.sh# Database InfoDb_name= "Test"Db_user= "Root"db_pass= "Root"# others VARsBin_dir=
But after the toss of the VPS, it is not just to back up MySQL, some independent site data also need to back up.
If you have a third-party Linux host or Amazon-like cloud storage, it is much simpler, linux-linux backup is convenient.
But I want to
MySQL automatic backup batch under Windows2011-05-04 09:16:45| Category: MySQL| Report | Font size Subscription Backup by system timeNote If there are spaces in the MySQL installation path. The. bat file will be copied to the appropriate
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.