mysql数据库备份并且实现远程复制
一.实现ssh 远程登陆
机器环境:
192.167.33.108 clent 用户:crawler
192.167.33.77 server 用户:crawler
1.客户端 生成密钥
/home/crawler/.ssh/ssh-keygen
2. 查看密钥文件权限
ls -ld ~/.ssh; ls -l ~/.ssh
3.修改文件权限
chmod 700 /home/crawler/.ssh
chmod 600 /home/crawler/.ssh/id_rsa
4.复制公钥到服务器端
scp -r /home/crawler/.ssh/id_rsa.pub crawler@192.167.33.77:/home/crawler/.ssh
5.服务器端设置公钥
ls -ld /home/crawler/.ssh 查看文件权限
chmod 700 /home/crawler/.ssh 需要是drwx
ls -l /home/crawler/.ssh/*pub 查看是否有公钥
cat /home/crawler/.ssh/id_rsa.pub >> /home/crawler/.ssh/authorized_keys //生成公钥最好用这种方式避免替换掉之前的公钥
chmod 644 /home/crawler/.ssh/authorized_keys //修改权限
ls -l /home/crawler/.ssh // 查看权限
6.ssh crawler@192.167.33.47 登陆成功
二、备份mysql数据库
1.备份脚本(每天凌晨3点30开始备份,只保留7天的备份数据)
30 03 * * * sh /home/crawler/mysql_back_up/script/mysql-backup.sh gquan_miss8
rq=` date +%Y%m%d `
echo backuping $1
mysqldump -uroot -p111111 --default-character-set=utf8 --opt --triggers -R --hex-blob --single-transaction $1 | gzip > /home/crawler/mysql_back_up/daily/$1-all-$rq.sql.gz
find /home/crawler/mysql_back_up/daily -mtime +7 -name "*.sql.gz" -exec rm -rf {} \;
echo finished backup $1
2.rsync实现远程备份数据增量同步(每天凌晨5点10分执行)
10 05 * * * sh /home/crawler/mysql_back_up/script/back_mysql_77.sh >> /home/crawler/mysql_back_up/script/back.log
#!/bin/sh
echo "------------------------start--------------"`date`
rsync -au --delete /home/crawler/mysql_back_up/daily/ crawler@192.168.32.77:/home/crawler/back_96_data
echo "------------------------over--------------"`date
3.测试查看服务器上面有client文件说明正确
server图片
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAscAAAA+CAIAAABIliGBAAASjElEQVR4nO2d3bWrOAyF3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nmSni+zmTeI33US54MTIqn/ODkVZIi97hFScEbY+yGoyWF9FQsUr+0TgiXuA4WoxbcWgoTKz4AAACXoFpSbM4aEDz4jumjYkkxjO6lWzKzqyVF/mdZUnDjIEiKQU5PxSP2S6pX6IhkMCrJNomXFGYYvXOn2i0DAABgG7tFKaIdC29LHzXPolg3aY+wzLFOUpTf5uuiFNLh06UoRev5y4qkkOrVx09dPiHGI+RNpMKHAAAAvpDGtRT8MXtS9OID6aPEDQtCG8gN/C4LbjHBshb0Gf3B2dHGgZv4UK6wSP2S6pX6Re1lA2jd8+m9OJkTf1/DPB6TRMKKCgAAuAjrd3xoaxrM/Mn8pv3O9FHinobQoNjXzZdfQY2i66W7TKg/lezw49BLUpT7lYy/2K+l2lyTCbruZSiXgNJ0CwAAgO/lcOdSvIdeAfmrBPaVFTPqxAcAAIDrcJgDud8JFx1ZxzUkRSlydIEhAAAAUOJ/IeYOUtb6fXcAAAAASUVORK5CYII=" alt="" />
mysql数据库备份并且实现远程复制的更多相关文章
- Xtrabackup原理及使用innobackupex进行MySQL数据库备份恢复
Xtrabackup是由percona提供的mysql数据库备份工具,据官方介绍,这也是世界上惟一一款开源的能够对innodb和xtradb数据库进行热备的工具. Xtrabackup中主要包含两个工 ...
- MySQL数据库备份详解
原文:MySQL数据库备份详解 对于任何数据库来说,备份都是非常重要的 数据库复制不能取代备份的作用 比如我们由于误操作,在主数据库上删除了一些数据,由于主从复制的时间很短,在发现时,从数据库上的数据 ...
- MySQL数据库备份还原(基于binlog的增量备份)
MySQL数据库备份还原(基于binlog的增量备份) 一.简介 1.增量备份 增量备份 是指在一次全备份或上一次增量备份后,以后每次的备份只需备份与前一次相比增加或者被修改的文件.这就意味 ...
- Mysql数据库备份和按条件导出表数据
Mysql数据库备份和按条件导出表数据 一.备份数据库 # mysqldump -u root -p dbcurr>/home/20090219.sql mysqldum为备份命令,- ...
- MySQL用户管理、常用sql语句、MySQL数据库备份恢复
1.MySQL用户管理 给远程登陆用户授权:grant all on *.* to 'user1'@'127.0.0.1' identified by '123456' (这里的127.0.0.1是指 ...
- 使用TreeDMS进行MySQL数据库的Web页面远程管理
在互联网应用蓬勃发展的时代背景下,各种各样的网络平台,网络应用,移动应用层出不穷,那么这些应用及平台都需要使用到数据库.如何高效的对数据进行日常维护.管理.监控成为迫切需要解决的问题. 基于web的方 ...
- 【转】10 个MySQL数据库备份教程推荐
10 个MySQL数据库备份教程推荐 MySQL是动态网站开发中最著名的开源数据库系统.如果你在网站中使用了MySQL,那么你应该定期备份你的数据以防止它丢失. 本文将介绍自动或手动备份MySQL数据 ...
- Ubuntu Server下MySql数据库备份脚本代码
明: 我这里要把MySql数据库存放目录/var/lib/mysql下面的pw85数据库备份到/home/mysql_data里面,并且保存为mysqldata_bak_2012_04_11.tar. ...
- MySQL数据库备份还原
本文以CentOS 7 yum安装的MariaDB-server5.5为例,说明MySQL的几种 备份还原方式 将服务器A(192.168.1.100)上的数据库备份,还原到B(192.168.1.2 ...
随机推荐
- GDKOI2017滚粗记
Preface 比赛成绩非常烂,却腐败得非常爽,但是gmh大爷因为和我们腐败,变得更强. 比赛策略有点问题,拼命想正解而没了暴力分 数论题做得比较少,导致只会找规律.知识点需要补充,如AC自动机,启发 ...
- Git使用的自我总结
一.Git安装后打开Git bash,第一次使用 1.Git账号信息配置 2.用命令git clone从远程库克隆 会在克隆的项目下有一个隐藏的.git目录,这个目录是Git来跟踪管理版本库的,没事千 ...
- 【类与对象】--------java基础学习第六天
类与对象 1. 对于面向对象的开发来讲也分为三个过程: OOA(面向对象分析) OOD(面向对象设计) OOP(面向对象编程) 2. 面向对象的基本特征 2.1. 封装:保护内部操作(属性,方法)不被 ...
- kibana 创建index pattern 索引模式时过慢导致无法创建成功 以及解决方案
下面我具体描述一下我遇到的问题. 在kibana上面创建索引点击创建时,一直显示下面的页面 就看到不停的在那转,始终创建不成功. 查看后台日志,看到状态码为403,报了如下的错误 由于我用的是es6版 ...
- VS启动Winform项目提示:不支持互操作调试
64 位平台不支持互操作调试(托管 + 非托管混合模式调试). 在VS中设置项目属性--->调试--->取消选中“启用本地代码调试”. 此问题在.NET FrameWork低版本框架会出现 ...
- Android程序员必知必会的网络通信传输层协议——UDP和TCP
1.点评 互联网发展至今已经高度发达,而对于互联网应用(尤其即时通讯技术这一块)的开发者来说,网络编程是基础中的基础,只有更好地理解相关基础知识,对于应用层的开发才能做到游刃有余. 对于Android ...
- [Swift]LeetCode725. 分隔链表 | Split Linked List in Parts
Given a (singly) linked list with head node root, write a function to split the linked list into k c ...
- Java部署项目命令学习小结
前言: 暂无 零:java -h 和很多linux命令一样,我们第一步先通过“java -h”命令查看java命令的使用语法,其输出如下 [root@wxapp203 basesoft]# java ...
- 6.Git基础-远程仓库的使用
远程仓库是指托管在因特网或其他网络中的你的项目的版本库.比如你在GitHub中托管的代码库,就是远程仓库. 1.查看远程仓库 -- git remote git remote 查看已经配置的远程仓 ...
- 【SQL进阶】03.执行计划之旅1 - 初探
听到大牛们说执行计划,总是很惶恐,是对知识的缺乏的惶恐,所以必须得学习执行计划,以减少对这一块知识的惶恐,下面是对执行计划的第一讲-理解执行计划. 本系列[T-SQL]主要是针对T-SQL的总结. S ...