当前位置:网站首页>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
边栏推荐
- 如何自己动手写一个vscode插件,实现插件自由!
- Bluetooth for Delphi xe7
- String Basics
- 阅读笔记 Deep Hough Voting for 3D Object Detection in Point Clouds
- Oracle 19c 安装文档
- zgc 并发标识和并发转移阶段的多视图地址映射
- GPU giant NVIDIA suffered a "devastating" network attack, and the number one malware shut down its botnet infrastructure | global network security hotspot on February 28
- 一级指针&二级指针知识点梳理
- Introduction to the characteristics of balancer decentralized exchange market capitalization robot
- Test basis: unit test
猜你喜欢
JUC并发工具包使用指南
@loadbalance annotation of resttemplate
Product Manager: "click here to jump to any page I want to jump" -- decoupling efficiency improving artifact "unified hop routing"
My way of programming
SQL调优指南笔记18:Analyzing Statistics Using Optimizer Statistics Advisor
Deep Hough voting for 3D object detection in point clouds
CVPR 2022 | 应对噪声标签,西安大略大学、字节跳动等提出对比正则化方法
SQL调优指南笔记17:Importing and Exporting Optimizer Statistics
一级指针&二级指针知识点梳理
makefile 的ifeq,filter,strip 简单使用
随机推荐
#981 Time Based Key-Value Store
Oracle 19c 安装文档
atoi超强解析
Libmysqlclient A static library
Teambition 协作应用心得分享|社区征文
求解一维数组前缀和
EU officially released the data act, Ukraine was attacked by DDoS again, kitchen appliance giant Meiya was attacked, internal data leakage network security weekly
Market trend report, technical innovation and market forecast of hydraulic chain hoist in China
测试基础之:单元测试
Pointer and array & pointer and const & struct and Const
Icml2022 | Galaxy: apprentissage actif des cartes de polarisation
leetcode:210. Schedule II
Sorting out the knowledge points of primary and secondary indicators
Insert sort
Recursively call knowledge points - including example solving binary search, frog jumping steps, reverse order output, factorial, Fibonacci, Hanoi tower.
linux备份mysql
Ubuntu 16.04 installing mysql5.6
金融信创爆发年!袋鼠云数栈DTinsight全线产品通过信通院信创专项测试
Pixel level reconstruction and restoration technology to solve severe image blur
Cv2.lut() (populates the output array with values from the lookup table)