SlideShare a Scribd company logo
DATA Management
(BACKUP, RESTORE, MOUNT, and DELETE)
www.infiniflux.com
Table of Contents
BACKUP Concept
BACKUP Command
RESTORE Command
DELETE Command
MOUNT Command
1
2
3
4
5
Example Scenario6
BACKUP Concept
3
DB
Create Backup Image
Table1 Table2 Table3 Table4 Table5
date1 date1 date1 date1 date1
date2 date2 date2 date2 date2
Backup target based on date
date3 date3 date3 date3 date3
date2 date2 date2 date2 date2
Restore recovery data
Backup file
Table1 Table2
Table3 Table4 Table5
InfiniFlux Storage Device
(Local disk/NFS/Cloud)
date2 date2
date2 date2 date2
• BACKUP stores all the images of time-based database as files.
• RESTORE allows to restore the images by using backup images when the original images were damaged.
• MOUNT creates “read only view” by using backup image.
BACKUP Command
4
• BACKUP DATABASE [FROM start_time TO end_time] INTO [DISK | IBFILE] = ‘backup_file_path'
• Backup database of a specified period of time, defined by ifluxsql, into the specified path ($IFLUX_HOME/dbs).
• When using an absolute path, backup data will be stored in the path.
• Backup the whole database
• Able to backup database as a directory or a single file
 Full backup of database on a specified date
 Backup the whole single file on a specified date
• Backup files will be created in the directory of “$IFLUX_HOME/dbs/2015-09-21”.
• Backup file “$IFLUX_HOME/dbs/2015-09-21_backup.ibf” will be created.
iFlux> BACKUP DATABASE
FROM TO_DATE(‘2015-09-21 00:00:00’, ‘YYYY-MM-DD HH24:MI:SS’)
TO TO_DATE(‘2015-09-21 23:59:59 999:999:999’, ‘YYYY-MM-DD HH24:MI:SS mmm:uuu:nnn’)
INTO DISK = ‘2015-09-21’;
iFlux> BACKUP DATABASE
FROM TO_DATE(‘2015-09-21 00:00:00’, ‘YYYY-MM-DD HH24:MI:SS’)
TO TO_DATE(‘2015-09-21 23:59:59 999:999:999’, ‘YYYY-MM-DD HH24:MI:SS mmm:uuu:nnn’)
INTO IBFILE = ‘2015-09-21_backup.ibf’;
RESTORE Command
5
• ifluxadmin –r ‘ backup_file_path’
• Update the data which is overlapped with backup image area, as database image
• If table doesn’t exist in the database, it will automatically be created.
 Restore the backup image database on a specified date
• Must stop the infiniFlux and delete the database before executing RESTORE command.
• Create a new database by using backup image.
 Read information of a single backup file
• Able to read information of a single backup file by using “ifluxadmin –w” command.
• Name of backup file, creation date, starting/ending point of backup, and version information of DB will be displayed.
$ ifluxadmin –k; /* Stop the database */
$ ifluxadmin –d; /* Delete the database */
$ ifluxadmin –r ‘2015-09-21’;
$ ifluxadmin –w ‘2015-09-21_backup.ibf’;
MOUNT Command
6
• [MOUNT | UNMOUNT] DATABASE ‘backup_file_path‘
• Create a table, exists in the backup image, as a read-only view in the current database.
• Able to use backup files immediately by running mount/unmount commands within a few seconds.
 Mount/unmount backup images on a specified date
 Mount/unmount backup images of a single file on a specified date
• Mount and unmount backup directory images of “$IFLUX_HOME/dbs/2015-09-21”.
• For the backup of single files, execute mount command after decompressing the files as directory format.
iFlux> MOUNT DATABASE ‘2015-09-21’;
iFlux> UNMOUNT DATABASE ‘2015-09-21’;
$ ifluxadmin –x ‘2015-09-21_backup.ibf’ ‘2015-09-21_extract’
iFlux> MOUNT DATABASE ‘2015-09-21_extract’;
iFlux> UNMOUNT DATABASE ‘2015-0-21_extract’;
MOUNT Command (cont’)
7
• Able to select mounted data through the virtual table “V$STORAGE_MOUNT_DATABASES”
 Select mounted data
Name of Column Description
NAME Name of mounted database
PATH Location of mounted database
BACKUP_TBSID Backup tablespace ID
BACKUP_SCN Unique ID of Backup
DB_BEGIN_TIME Start time of backup database
DB_END_TIME End time of backup database
BACKUP_BEGIN_TIME Start time of backup
BACKUP_END_TIME End time of backup
FLAG Attribute of flag
iFlux> SELECT * FROM V$STORAGE_MOUNT_DATABASES;
DELETE Command
8
• DELETE FROM TableName [ OLDEST | EXCEPT ] Number [Time Duration] ROWS;
• DELETE FROM TableName BEFORE datetime_expression;
• Impossible to delete data from a random record, but able to delete continuous records.
• Cannot be restored once the data is deleted.
 Deleting the oldest 100 records
 Deleting all the records except the latest 100 records
 Deleting all the records except for the records of 100 days from today
 Deleting all the records prior to September 22, 2015
iFlux> DELETE FROM t1 OLDEST 100 ROWS;
iFlux> DELETE FROM t1 EXCEPT 100 ROWS;
iFlux> DELETE FROM t1 EXCEPT 100 DAY;
iFlux> DELETE FROM t1 BEFORE TO_DATE(‘2015-09-22’, ‘YYYY-MM-DD’);
데이터의 실시간 저장
Example Scenario
9
• 9/21/2015 Insert data
• 9/21/2015 Backup the database
• 9/21/2015 Delete all the prior data including Sep. 21, 2015
• 9/21/2015 Select data by mounting backup images
• 9/21/2015 Unmount backup images
• 9/22/2015 Insert data
• 9/22/2015 Backup the database
• 9/22/2015 Delete all the prior data including today
• 9/22/2015 Select data by mounting backup images
• 9/21/2015 Select data by mounting backup images
• 9/22/2015 Unmount backup images
• 9/21/2015 Unmount backup images
• Check backup files in the directory of “$IFLUX_HOME/dbs“.
 Daily backup and samples
www.infiniflux.com
info@infiniflux.com
InfiniFlux
The World's Fastest
Time Series DBMS
for IoT and Big Data

More Related Content

What's hot

PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
Equnix Business Solutions
 
Steps to Shrink Datafiles
Steps to Shrink DatafilesSteps to Shrink Datafiles
Steps to Shrink Datafiles
Ram Kumar
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?
Mydbops
 
Build MySQL virtual enviroment
Build MySQL virtual enviromentBuild MySQL virtual enviroment
Build MySQL virtual enviroment
Taras Vasylyuk
 
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey KopytovOSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
NETWAYS
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
Osama Mustafa
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
uzzal basak
 
Hive data migration (export/import)
Hive data migration (export/import)Hive data migration (export/import)
Hive data migration (export/import)
Bopyo Hong
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
Equnix Business Solutions
 
Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427
Jinrong Ye
 
Example R usage for oracle DBA UKOUG 2013
Example R usage for oracle DBA UKOUG 2013Example R usage for oracle DBA UKOUG 2013
Example R usage for oracle DBA UKOUG 2013
BertrandDrouvot
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
Voeurng Sovann
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
K Kumar Guduru
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingKyle Hailey
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus caging
BertrandDrouvot
 
Beginbackup
BeginbackupBeginbackup
Beginbackup
oracle documents
 
Ftp configuration
Ftp configurationFtp configuration
Ftp configuration
Himanshu Bhardwaj
 
Quick reference for curl
Quick reference for curlQuick reference for curl
Quick reference for curl
Rajkumar Asohan, PMP
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklistpraveen_01236
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual table
Girija Muscut
 

What's hot (20)

PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
PGConf.ASIA 2019 Bali - Mission Critical Production High Availability Postgre...
 
Steps to Shrink Datafiles
Steps to Shrink DatafilesSteps to Shrink Datafiles
Steps to Shrink Datafiles
 
What is new in MariaDB 10.6?
What is new in MariaDB 10.6?What is new in MariaDB 10.6?
What is new in MariaDB 10.6?
 
Build MySQL virtual enviroment
Build MySQL virtual enviromentBuild MySQL virtual enviroment
Build MySQL virtual enviroment
 
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey KopytovOSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
OSDC 2012 | Taking hot backups with XtraBackup by Alexey Kopytov
 
Step by Step Restore rman to different host
Step by Step Restore rman to different hostStep by Step Restore rman to different host
Step by Step Restore rman to different host
 
Schema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12cSchema replication using oracle golden gate 12c
Schema replication using oracle golden gate 12c
 
Hive data migration (export/import)
Hive data migration (export/import)Hive data migration (export/import)
Hive data migration (export/import)
 
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
PGConf.ASIA 2019 Bali - Building PostgreSQL as a Service with Kubernetes - Ta...
 
Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427Xtrabackup工具使用简介 - 20110427
Xtrabackup工具使用简介 - 20110427
 
Example R usage for oracle DBA UKOUG 2013
Example R usage for oracle DBA UKOUG 2013Example R usage for oracle DBA UKOUG 2013
Example R usage for oracle DBA UKOUG 2013
 
Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1Installing oracle grid infrastructure and database 12c r1
Installing oracle grid infrastructure and database 12c r1
 
12c (12.1) Database installation on Solaris 11(11.2)
12c (12.1) Database  installation on Solaris 11(11.2)12c (12.1) Database  installation on Solaris 11(11.2)
12c (12.1) Database installation on Solaris 11(11.2)
 
Oracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 samplingOracle 10g Performance: chapter 00 sampling
Oracle 10g Performance: chapter 00 sampling
 
Oracle: Binding versus caging
Oracle: Binding versus cagingOracle: Binding versus caging
Oracle: Binding versus caging
 
Beginbackup
BeginbackupBeginbackup
Beginbackup
 
Ftp configuration
Ftp configurationFtp configuration
Ftp configuration
 
Quick reference for curl
Quick reference for curlQuick reference for curl
Quick reference for curl
 
Backup andrecoverychecklist
Backup andrecoverychecklistBackup andrecoverychecklist
Backup andrecoverychecklist
 
Part1 create sequence,dual table
Part1 create sequence,dual tablePart1 create sequence,dual table
Part1 create sequence,dual table
 

Viewers also liked

Backup And File Management
Backup And File ManagementBackup And File Management
Backup And File Managementmrbennett2009
 
Global Business and public relations
Global Business and public relations Global Business and public relations
Global Business and public relations
Peter Maciel
 
Certificate of Achievement - Coaching
Certificate of Achievement - CoachingCertificate of Achievement - Coaching
Certificate of Achievement - CoachingAustin Nappier
 
Verity evans digital shoreditch
Verity evans digital shoreditchVerity evans digital shoreditch
Verity evans digital shoreditchalex_atkinson
 
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн..."Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
Irennn12
 
Sans contenu vous êtes nus
Sans contenu vous êtes nusSans contenu vous êtes nus
Sans contenu vous êtes nus
Tourisme Numérique, Forum de Deauville
 
Cуміжні кути та їх властивості
Cуміжні кути та їх властивостіCуміжні кути та їх властивості
Cуміжні кути та їх властивості
наталия иванова
 
Nw tourism product development dien bien
Nw tourism product development dien bienNw tourism product development dien bien
Nw tourism product development dien bien
duanesrt
 
Виховання чуйного серця та мудрої думки
Виховання чуйного серця та мудрої думки Виховання чуйного серця та мудрої думки
Виховання чуйного серця та мудрої думки
Irennn12
 
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
tdc-globalcode
 
InfiniFlux collector
InfiniFlux collectorInfiniFlux collector
InfiniFlux collector
InfiniFlux
 
InfiniFlux Minmax Cache
InfiniFlux Minmax CacheInfiniFlux Minmax Cache
InfiniFlux Minmax Cache
InfiniFlux
 
InfiniFlux duration
InfiniFlux durationInfiniFlux duration
InfiniFlux duration
InfiniFlux
 
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
Andrew Sungjin Kim
 
Freedom give me a hug (Iran)
Freedom give me a hug (Iran)Freedom give me a hug (Iran)
Freedom give me a hug (Iran)
Makala D.
 
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
Nurul Aqila Ahamad Kamal
 
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصورأعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
Wasiem El-Helaly
 
InfiniFlux IP Address Type
InfiniFlux IP Address TypeInfiniFlux IP Address Type
InfiniFlux IP Address Type
InfiniFlux
 

Viewers also liked (19)

Backup And File Management
Backup And File ManagementBackup And File Management
Backup And File Management
 
Global Business and public relations
Global Business and public relations Global Business and public relations
Global Business and public relations
 
Certificate of Achievement - Coaching
Certificate of Achievement - CoachingCertificate of Achievement - Coaching
Certificate of Achievement - Coaching
 
Verity evans digital shoreditch
Verity evans digital shoreditchVerity evans digital shoreditch
Verity evans digital shoreditch
 
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн..."Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
"Ділення 0.Неможливість ділення на 0.Складання і обчислення виразів. Складанн...
 
Sans contenu vous êtes nus
Sans contenu vous êtes nusSans contenu vous êtes nus
Sans contenu vous êtes nus
 
Cуміжні кути та їх властивості
Cуміжні кути та їх властивостіCуміжні кути та їх властивості
Cуміжні кути та їх властивості
 
Nw tourism product development dien bien
Nw tourism product development dien bienNw tourism product development dien bien
Nw tourism product development dien bien
 
Виховання чуйного серця та мудрої думки
Виховання чуйного серця та мудрої думки Виховання чуйного серця та мудрої думки
Виховання чуйного серця та мудрої думки
 
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
TDC2016POA | Trilha Bigdata - Armazenando séries temporais em bases de dados ...
 
InfiniFlux collector
InfiniFlux collectorInfiniFlux collector
InfiniFlux collector
 
InfiniFlux Minmax Cache
InfiniFlux Minmax CacheInfiniFlux Minmax Cache
InfiniFlux Minmax Cache
 
InfiniFlux duration
InfiniFlux durationInfiniFlux duration
InfiniFlux duration
 
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
Infiniflux vs influxdb 비교 테스트 결과 2016 12월-v2
 
Freedom give me a hug (Iran)
Freedom give me a hug (Iran)Freedom give me a hug (Iran)
Freedom give me a hug (Iran)
 
CCNA certificate
CCNA certificateCCNA certificate
CCNA certificate
 
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
Project 2. Case Study on Islamic Country: Indonesia (Sem 1, 2015/2016)
 
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصورأعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
أعظم مائة شخص فى التاريخ .. مايكل هارت .. ترجمة أنيس منصور
 
InfiniFlux IP Address Type
InfiniFlux IP Address TypeInfiniFlux IP Address Type
InfiniFlux IP Address Type
 

Similar to InfiniFlux Backup

[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
altistory
 
MySQL Backup & Recovery
MySQL Backup & RecoveryMySQL Backup & Recovery
MySQL Backup & Recovery
Mindfire Solutions
 
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning PresentationMySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning PresentationColin Charles
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online Recovery
Keith Hollman
 
Training Slides: 203 - Backup & Recovery
Training Slides: 203 - Backup & RecoveryTraining Slides: 203 - Backup & Recovery
Training Slides: 203 - Backup & Recovery
Continuent
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
Dale McInnis
 
Oracle backup
Oracle backupOracle backup
Oracle backup
Ravi Kumar Lanke
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
Mark Leith
 
MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)
Mydbops
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Bu
vivaankumar
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesSaiful
 
All types of backups and restore
All types of backups and restoreAll types of backups and restore
All types of backups and restoreVasudeva Rao
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and RecoveryAnar Godjaev
 
MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
Keith Hollman
 
OpenStack DRaaS - Freezer - 101
OpenStack DRaaS - Freezer - 101OpenStack DRaaS - Freezer - 101
OpenStack DRaaS - Freezer - 101
Trinath Somanchi
 

Similar to InfiniFlux Backup (20)

[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery[Altibase] 13 backup and recovery
[Altibase] 13 backup and recovery
 
Les 05 create_bu
Les 05 create_buLes 05 create_bu
Les 05 create_bu
 
Les 07 rman_rec
Les 07 rman_recLes 07 rman_rec
Les 07 rman_rec
 
Les 11 fl2
Les 11 fl2Les 11 fl2
Les 11 fl2
 
MySQL Backup & Recovery
MySQL Backup & RecoveryMySQL Backup & Recovery
MySQL Backup & Recovery
 
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning PresentationMySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
MySQL Server Backup, Restoration, And Disaster Recovery Planning Presentation
 
MySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online RecoveryMySQL Enterprise Backup: PITR Partial Online Recovery
MySQL Enterprise Backup: PITR Partial Online Recovery
 
Training Slides: 203 - Backup & Recovery
Training Slides: 203 - Backup & RecoveryTraining Slides: 203 - Backup & Recovery
Training Slides: 203 - Backup & Recovery
 
Les 12 fl_db
Les 12 fl_dbLes 12 fl_db
Les 12 fl_db
 
Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013Db2 recovery IDUG EMEA 2013
Db2 recovery IDUG EMEA 2013
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Oracle backup
Oracle backupOracle backup
Oracle backup
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)MySQL Enterprise Backup (MEB)
MySQL Enterprise Backup (MEB)
 
Les 05 Create Bu
Les 05 Create BuLes 05 Create Bu
Les 05 Create Bu
 
Oracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slidesOracle 12c New Features_RMAN_slides
Oracle 12c New Features_RMAN_slides
 
All types of backups and restore
All types of backups and restoreAll types of backups and restore
All types of backups and restore
 
Backup and Recovery
Backup and RecoveryBackup and Recovery
Backup and Recovery
 
MySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR ScenariosMySQL Enterprise Backup - BnR Scenarios
MySQL Enterprise Backup - BnR Scenarios
 
OpenStack DRaaS - Freezer - 101
OpenStack DRaaS - Freezer - 101OpenStack DRaaS - Freezer - 101
OpenStack DRaaS - Freezer - 101
 

Recently uploaded

Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
mz5nrf0n
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
Philip Schwarz
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
kalichargn70th171
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
Aftab Hussain
 

Recently uploaded (20)

Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
Hand Rolled Applicative User Validation Code Kata
Hand Rolled Applicative User ValidationCode KataHand Rolled Applicative User ValidationCode Kata
Hand Rolled Applicative User Validation Code Kata
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket ManagementUtilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
Utilocate provides Smarter, Better, Faster, Safer Locate Ticket Management
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
Why Mobile App Regression Testing is Critical for Sustained Success_ A Detail...
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of CodeA Study of Variable-Role-based Feature Enrichment in Neural Models of Code
A Study of Variable-Role-based Feature Enrichment in Neural Models of Code
 

InfiniFlux Backup

  • 1. DATA Management (BACKUP, RESTORE, MOUNT, and DELETE) www.infiniflux.com
  • 2. Table of Contents BACKUP Concept BACKUP Command RESTORE Command DELETE Command MOUNT Command 1 2 3 4 5 Example Scenario6
  • 3. BACKUP Concept 3 DB Create Backup Image Table1 Table2 Table3 Table4 Table5 date1 date1 date1 date1 date1 date2 date2 date2 date2 date2 Backup target based on date date3 date3 date3 date3 date3 date2 date2 date2 date2 date2 Restore recovery data Backup file Table1 Table2 Table3 Table4 Table5 InfiniFlux Storage Device (Local disk/NFS/Cloud) date2 date2 date2 date2 date2 • BACKUP stores all the images of time-based database as files. • RESTORE allows to restore the images by using backup images when the original images were damaged. • MOUNT creates “read only view” by using backup image.
  • 4. BACKUP Command 4 • BACKUP DATABASE [FROM start_time TO end_time] INTO [DISK | IBFILE] = ‘backup_file_path' • Backup database of a specified period of time, defined by ifluxsql, into the specified path ($IFLUX_HOME/dbs). • When using an absolute path, backup data will be stored in the path. • Backup the whole database • Able to backup database as a directory or a single file  Full backup of database on a specified date  Backup the whole single file on a specified date • Backup files will be created in the directory of “$IFLUX_HOME/dbs/2015-09-21”. • Backup file “$IFLUX_HOME/dbs/2015-09-21_backup.ibf” will be created. iFlux> BACKUP DATABASE FROM TO_DATE(‘2015-09-21 00:00:00’, ‘YYYY-MM-DD HH24:MI:SS’) TO TO_DATE(‘2015-09-21 23:59:59 999:999:999’, ‘YYYY-MM-DD HH24:MI:SS mmm:uuu:nnn’) INTO DISK = ‘2015-09-21’; iFlux> BACKUP DATABASE FROM TO_DATE(‘2015-09-21 00:00:00’, ‘YYYY-MM-DD HH24:MI:SS’) TO TO_DATE(‘2015-09-21 23:59:59 999:999:999’, ‘YYYY-MM-DD HH24:MI:SS mmm:uuu:nnn’) INTO IBFILE = ‘2015-09-21_backup.ibf’;
  • 5. RESTORE Command 5 • ifluxadmin –r ‘ backup_file_path’ • Update the data which is overlapped with backup image area, as database image • If table doesn’t exist in the database, it will automatically be created.  Restore the backup image database on a specified date • Must stop the infiniFlux and delete the database before executing RESTORE command. • Create a new database by using backup image.  Read information of a single backup file • Able to read information of a single backup file by using “ifluxadmin –w” command. • Name of backup file, creation date, starting/ending point of backup, and version information of DB will be displayed. $ ifluxadmin –k; /* Stop the database */ $ ifluxadmin –d; /* Delete the database */ $ ifluxadmin –r ‘2015-09-21’; $ ifluxadmin –w ‘2015-09-21_backup.ibf’;
  • 6. MOUNT Command 6 • [MOUNT | UNMOUNT] DATABASE ‘backup_file_path‘ • Create a table, exists in the backup image, as a read-only view in the current database. • Able to use backup files immediately by running mount/unmount commands within a few seconds.  Mount/unmount backup images on a specified date  Mount/unmount backup images of a single file on a specified date • Mount and unmount backup directory images of “$IFLUX_HOME/dbs/2015-09-21”. • For the backup of single files, execute mount command after decompressing the files as directory format. iFlux> MOUNT DATABASE ‘2015-09-21’; iFlux> UNMOUNT DATABASE ‘2015-09-21’; $ ifluxadmin –x ‘2015-09-21_backup.ibf’ ‘2015-09-21_extract’ iFlux> MOUNT DATABASE ‘2015-09-21_extract’; iFlux> UNMOUNT DATABASE ‘2015-0-21_extract’;
  • 7. MOUNT Command (cont’) 7 • Able to select mounted data through the virtual table “V$STORAGE_MOUNT_DATABASES”  Select mounted data Name of Column Description NAME Name of mounted database PATH Location of mounted database BACKUP_TBSID Backup tablespace ID BACKUP_SCN Unique ID of Backup DB_BEGIN_TIME Start time of backup database DB_END_TIME End time of backup database BACKUP_BEGIN_TIME Start time of backup BACKUP_END_TIME End time of backup FLAG Attribute of flag iFlux> SELECT * FROM V$STORAGE_MOUNT_DATABASES;
  • 8. DELETE Command 8 • DELETE FROM TableName [ OLDEST | EXCEPT ] Number [Time Duration] ROWS; • DELETE FROM TableName BEFORE datetime_expression; • Impossible to delete data from a random record, but able to delete continuous records. • Cannot be restored once the data is deleted.  Deleting the oldest 100 records  Deleting all the records except the latest 100 records  Deleting all the records except for the records of 100 days from today  Deleting all the records prior to September 22, 2015 iFlux> DELETE FROM t1 OLDEST 100 ROWS; iFlux> DELETE FROM t1 EXCEPT 100 ROWS; iFlux> DELETE FROM t1 EXCEPT 100 DAY; iFlux> DELETE FROM t1 BEFORE TO_DATE(‘2015-09-22’, ‘YYYY-MM-DD’);
  • 9. 데이터의 실시간 저장 Example Scenario 9 • 9/21/2015 Insert data • 9/21/2015 Backup the database • 9/21/2015 Delete all the prior data including Sep. 21, 2015 • 9/21/2015 Select data by mounting backup images • 9/21/2015 Unmount backup images • 9/22/2015 Insert data • 9/22/2015 Backup the database • 9/22/2015 Delete all the prior data including today • 9/22/2015 Select data by mounting backup images • 9/21/2015 Select data by mounting backup images • 9/22/2015 Unmount backup images • 9/21/2015 Unmount backup images • Check backup files in the directory of “$IFLUX_HOME/dbs“.  Daily backup and samples