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. 20165310 NstSec2019 Week3 Exp1 逆向与Bof基础

    20165310 NstSec2019 Week3 Exp1 逆向与Bof基础 一.实验内容 实验目标 本次实践的对象是一个名为pwn1的linux可执行文件. 该程序正常执行流程是:main调用fo ...

  2. php知识点-1

    global 是在函数内部 声明一个 函数外部的变量(即所谓的全局变量, 而所谓的超全局变量是指 像 $_POST, $GLOBALS等之类的自动系统变量) 的一个别名. 在函数内部使用 unset( ...

  3. 重要, 要播放音乐视频等多媒体: 安装fedora23中的多媒体编码器

    区分: 大多数用户和高级用户? 删除 dnf remove software-name 启动软件管理器: gnome-software. 要删除系统 "自带的" 软件, 如empt ...

  4. 马虎的算式|2013年蓝桥杯B组题解析第二题-fishers

    小明是个急性子,上小学的时候经常把老师写在黑板上的题目抄错了. 有一次,老师出的题目是:36 x 495 = ? 他却给抄成了:396 x 45 = ? 但结果却很戏剧性,他的答案竟然是对的!! 假设 ...

  5. 360搜索引擎取真实地址-python代码

    还是个比较简单的,不像百度有加密算法 分析 http://www.so.com/link?url=http%3A%2F%2Fedu.sd.chinamobile.com%2Findex%2Fnews. ...

  6. C# DateTime判断时间

    两种情况: 1 DateTime? dtTemp = null; if(dtTime != null) { //wawawa } 刚刚学会的,可空值类型,可判断是否赋值 2 DateTime dtTe ...

  7. Android 的 ListView 的CheckBox标题栏显示文本之后显示单选框

    https://blog.csdn.net/u013790519/article/details/50036223 2.CheckBox的android:button=”@null”属性代码设置如下: ...

  8. Basic Mathematics You Should Mastered

    Basic Mathematics You Should Mastered 2017-08-17  21:22:40  1. Statistical distance  In statistics,  ...

  9. (转载)用C#实现MySQL建库及建表

    最近做一个项目,为了方便用户使用,希望可以在系统初始化的时候,自动实现MySQL数据库的建库和建表操作.在网上查了很多资料都没有找到合适的,偶尔在一个国外网站上看到了相关的内容,特把实现方法整理如下: ...

  10. Shiro学习笔记(一)

    首先展示一下项目的结构目录 工程是用maven创建的   主要是方便管理Jar包  maven的  pom文件中所需要的jar包 <dependencies> <dependency ...