Physical(Raw) and Logical Backup:

1.Physical backups consist of raw copies of the directories and files that store database contents.

This type of backup is suitable for large, important databases that need to be recovered quickly.

2.Logical backups save information represents sa logical database structure(CREATE DATABASE,CREATE TABLE statements)

and content(INSERT statements or delimited-text files).

This type of backup is suitable for smaller amounts of data where you might edit the data values or table structure,or recreate the data on a different machine architecture.

3.Physical backup methods have these characteristics:

  • faster than logical
  • Output is more compact than for logical backup.
  • MySQL Enterprise Backup product performs physical backups.
  • can include related files such as log or configuration files.
  • Data from memory tables is trycky to backup this way because their contents are not stored on disk.
  • 备份只能在特定或者相似硬件环境的设备上使用.
  • 可以在MySQL服务器停止运行的时候执行.如果服务器在运行,需要执行appropriate locking so that the server 不会改变数据库内容 during the backup.
  • 企业版自动对需要的tables执行locking.
  • 物理备份工具包括mysqlbackup(企业版).

Logical备份:

  • The backup is done by querying the MySQL server to obtain database structure and content information.
  • Backup is slower than physical methods.
  • Output is larger than for physical backup, particuylarly when saved in text format.
  • Backup and resstore granularity is availableat the server level(all databases),database leve(all tables in a particular databse),or table level.This is true regradless of storage engine.
  • The backup does not inclue log or configuration files,or other database-related files that are not part of databases.
  • Backups stored in logical format are machine independent and highly portable.
  • Logical backups are performed with the MySQL server running.The server is not taken offline.
  • Logical bakcup tools include the mysqldump program and the SELECT ... INTO OUTFILE statement.These work for any storage engine,even MEMORY.
  • To restore logical backupos,SQL-format dump files can be processed using the mysql client.To load delimited-text files,use the LOAD DATA INFILE statement or the mysqlimport client.

Online Versus Offline Backups

  online backups take place while the MySQL server is running so that the database information can be obtained from the server.

Offline backups take place while the server is stopped.

This distinction can also be described as 'hot' versus 'cold' backups;

a 'warm' backup is one where the server remian running but locked against modifying data while you access database files externally.

Online:

The backup is less intrusive to other clients,which can connect to the MySQL server during the backup and may be able to access data depending on what operations they need to perform.

需要小心,强制相应锁定以至于数据修改无法执行会破坏备份完整性.MysQL企业备份工具会自动锁定.

Offline:

会对客户端产生不利影响.因为服务器在备份期间不可以使用.一般只应用于隶属服务器,这样即使其离线

Backup and Recovery Types的更多相关文章

  1. 7.1 Backup and Recovery Types 备份和恢复类型

    7.1 Backup and Recovery Types 备份和恢复类型 这个章节描述 不同备份类型的特点: 物理(raw)与逻辑备份 物理备份有raw 副本组成,存储数据库内容,这种类型的备份是适 ...

  2. Chapter 7 Backup and Recovery 备份和恢复:

    Chapter 7 Backup and Recovery 备份和恢复: Table of Contents 7.1 Backup and Recovery Types 7.2 Database Ba ...

  3. Backup and Recovery Basics1

    一.Backup and Recovery Overview 1.Backup and Recovery Overview 1.1 What is Backup and Recovery? 一般,备份 ...

  4. 14.18 InnoDB Backup and Recovery 备份和恢复:

    14.18 InnoDB Backup and Recovery 备份和恢复: 安全数据库管理的关键是 做定期的备份,依赖你的数据卷, MySQL server的数量和数据库的负载,你可以使用那些技术 ...

  5. Backup and Recovery Strategies1

    2.1.Data Recovery Strategy Determines Backup Strategy 在设计备份策略.如若数据恢复需求和数据恢复战略启动.每种类型的数据恢复需要你采取相应的备份类 ...

  6. ORACLE BACKUP AND RECOVERY

    ORACLE BACKUP AND RECOVERY http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r2/2day_ ...

  7. 官方文档 恢复备份指南一 Introduction to Backup and Recovery

    1.备份分为:物理备份和逻辑备份    物理备份:备份数据文件  控制文件  归档日志文件     逻辑备份:EXP EXPDP备份等 物理备份为主,逻辑做补充     2.错误的类型         ...

  8. Backup and Recovery Basics2

    1.6.Automatic Disk-Based Backup and Recovery: The Flash Recovery Area 创建不同备份和恢复文件的组件对每一个文件系统的大小没有不论什 ...

  9. Mysql backup and Recovery Data Type.

    数据库备份方法: 备份类型:物理备份和逻辑备份: 物理备份是指直接复制存储数据库内容的目录和文件,这种类型的备份适用于出现问题时需要快速恢复的大型重要数据库.逻辑备份保存以逻辑数据库结构(create ...

随机推荐

  1. linux判断日志文件大小进行清理

    脚本写了一个死循环,根据nohup产生的日志多大, 这里表示日志超过500M之后清理, 具体数字可自定义 睡眠数可自定义 #!/usr/bin/bash while true do s=`du -k ...

  2. python简说(二十五)面向对象

    面向对象编程: 类 一个种类.一个模型 实例.实例化.对象 实例.对象: 根据模型制作出来的东西. 实例化: 就是做东西的这个过程. class My: my=My() 私有 方法 类里面的函数 属性 ...

  3. 判断一个点是否在RotatedRect中

    openCV函数pointPolygonTest(): C++: double pointPolygonTest(InputArray contour, Point2f pt, bool measur ...

  4. 简单的MVC与SQL Server Express LocalDB

    M模式: 类,表示数据的应用程序和使用验证逻辑以强制实施针对这些数据的业务规则. V视图: 应用程序使用动态生成 HTML 响应的模板文件. C控制器: 处理传入的浏览器请求的类中检索模型数据,然后指 ...

  5. bzoj 2753 [SCOI 2012] 滑雪与时间胶囊 - Prim

    题目传送门 传送点I 传送点II 题目大意 给定一个有$n$个点$m$条边的图,每个点有一个高度$h_{i}$,能从$u$经过一条边到达$v$,当且仅当存在一条边是$(u, v)$或$(v, u)$, ...

  6. 【python39--面向对象组合】

    一.组合 定义:当几个对象是水平方向的时候,就应该考虑组合,当对象是纵向的时候用继承,组合就是用一个类把2个平级层次的类放在一起,然后实例化就可以了 #现在定义一个类,叫水池,水池里面有鱼和乌龟cla ...

  7. CXF整合spring,在tomcat中发布webService

    服务端 1.首先下载CXF的jar包 http://pan.baidu.com/s/1dFBwSRf 密码: qyax.里面自带了需要用到的spring的jar包. 或者使用maven,如下配置.不论 ...

  8. imx6ul linux4.1.15 LED驱动配置及heartbeat源码分析【转】

    本文转载自:https://blog.csdn.net/u010444107/article/details/78328807 1)查看内核配置wujun@wj-vBox:~/freescale/li ...

  9. tp剩余未验证内容-3

    为什么有时候会 出现 "上传文件保存错误"? public function save($file, $replace=true){ /* 移动文件 */ if (!move_up ...

  10. 160CrackMe练手 002

    首先查壳无壳,输入伪码报错,根据报错od查找字符串,定位到错误代码附近,可以看到有个条件跳转,改掉就可以爆破,接下来分析下注册算法,我们周围看看,从最近几个call看,并没有我们输入的用户名在堆栈中出 ...