当前位置:网站首页>Linux backup MySQL
Linux backup MySQL
2022-06-12 21:33:00 【Caozhenhua】
1) Create backup files :
cd /home/back/sql
vim mysqlbackup.sh
#!/bin/bash
date_str=$(date +%Y%m%d-%T)
mysqldump -uroot -pabc123 Platform > /home/back/auto/Platform_$date_str.sql
mysqldump -uroot -pabc123 MDM > /home/back/auto/MDM_$date_str.sql
mysqldump -uroot -pabc123 Integrate > /home/back/auto/Integrate_$date_str.sql
2) perform sh File test backup
bash mysqlbackup.sh
3) Give the script permission to execute
chmod 755 mysqlbackup.sh
4) utilize crontab Execute the above script regularly
crontab -e
5) Every day 23 Point to perform backup
0 23 * * * /home/back/sql/mysqlbackup.sh
6) see crontab list
crontab -l
边栏推荐
- Cv2.lut() (populates the output array with values from the lookup table)
- 插入排序
- Zip压缩解压缩
- Deep Hough voting for 3D object detection in point clouds
- #981 Time Based Key-Value Store
- Gather function in pytorch_
- 二分查找
- What's a good gift for the goddess Festival? Gift recommendation for the goddess Festival on March 8
- What are the disadvantages of bone conduction earphones? Analysis of advantages and disadvantages of bone conduction earphones
- Research Report on market supply and demand and strategy of China's hydraulic injection molding machine industry
猜你喜欢

Shell script Basics

Mxnet record IO details

The year of the outbreak of financial innovation! All dtinsight products of kangaroo cloud data stack have passed the special test of Xinchuang of ICT Institute

CVPR 2022 | 应对噪声标签,西安大略大学、字节跳动等提出对比正则化方法

Cookies and sessions

阅读笔记 Deep Hough Voting for 3D Object Detection in Point Clouds
![[target detection] |dive detector into box for object detection new training method based on fcos](/img/ac/c54c2733dceffea086b772f35f128a.png)
[target detection] |dive detector into box for object detection new training method based on fcos

一款高颜值的MySQL管理工具

leetcode:207. Class Schedule Card

Risk control modeling X: Discussion on problems existing in traditional modeling methods and Exploration on improvement methods
随机推荐
JdbcTemplate插入并返回主键
Teambition 协作应用心得分享|社区征文
模块八:设计消息队列存储消息数据的MySQL表
leetcode:210. Schedule II
重排数列练习题
GNS installation and configuration
图灵奖得主:想要在学术生涯中获得成功,需要注意哪些问题?
Ubuntu 16.04 installing mysql5.6
利用ADG Standby克隆PDB
Structure knowledge points all in
The salted fish has been transmitted for 5W times, and the latest spring recruit face-to-face test questions of bytes have been leaked
Two sentences to clarify JS throttling and anti shake
Leetcode: 210. Programme II
#113 Path Sum II
(4) Pyqt designs and implements the [factory production management system] order page - add, delete, modify and query (including source code analysis)
大一下学年学期总结
SQL调优指南笔记14:Managing Extended Statistics
二分查找
leetcode:207. 课程表
Research Report on market supply and demand and strategy of hydraulic operating table industry in China