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. 【RMAN】使用RMAN的 Compressed Backupsets备份压缩技术 (转载)

    1.Oracle参考文档中关于RMAN备份压缩的描述1)关于如何通过调整RMAN参数启用取消备份压缩功能http://download.oracle.com/docs/cd/B19306_01/bac ...

  2. jsxyhelu的GitHub使用方法

    如果只是使用Clone不能称得上是完全使用了GitHub,必须完成PullRequest,而且最好是对大型.带自动构建项目进行PR(比如OpenCV),这样才叫完全掌握GitHub的使用方法,这里分享 ...

  3. Python3 tkinter基础 Entry insert delete 点击按钮 向输入框赋值 或 清空

             Python : 3.7.0          OS : Ubuntu 18.04.1 LTS         IDE : PyCharm 2018.2.4       Conda ...

  4. eMMC ext4综述【转】

    本文转载自:https://blog.csdn.net/lieye_leaves/article/details/78214410 eMMC ext4综述一.系统的引导启动1.1系统的引导启动http ...

  5. Btrfs管理及应用

    一.btrfs基本概念 btrfs文件系统是2007年Oracle开发,支持GPL协议,为了取代Linux早期的ext系列文件系统. btrfs核心特性: 多物理卷支持:btrfs可由多个底层物理卷组 ...

  6. tp框架中的一些疑点知识--cookie和session的配置

    不同的浏览器采用不同的方式保存Cookie. IE浏览器会在"C:\Documents and Settings\你的用户名\Cookies"文件夹下以文本文件形式保存,一个文本文 ...

  7. linux服务器的所有服务web/dns/dhcp/vsftp-nfs-samba的配置

    nfs是sun开发的 network filesystem 网络文件系统,相当于win的映射网络驱动器, 可以将一台nfs服务器上的目录"挂载"到本地机器上的 一个 本地目录 一样 ...

  8. LuoguP3792 由乃与大母神原型和偶像崇拜

    题目地址 题目链接 题解 由乃题还是毒瘤啊orz 显然的一个结论是,如果保证不重复,维护区间min,max然后判断max-min+1==r-l+1是否成立即可 但是有重复 于是就要orz题解区的各位大 ...

  9. Unity3D学习笔记(三十二):Xlua(2)

    Xlua支持通过子类对象访问父类的变量属性和方法   对于C#的ref,out参数的方法 当调用的时候:out类型的参数是不需要传递实参的,普通的参数和ref参数需要传递实参. out,ref传出值通 ...

  10. 【matlab】笔记_1

    基本操作 ans 最近计算的答案 clc 清除命令行窗口 diary 将命令行窗口文本保存到文件中 矩阵 用逗号 (,) 或空格分隔各行元素. 用分号(;)分隔各列元素. a':装置矩阵. 要执行元素 ...