Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Backup type

Description

Example of backup result

Logical Backup

aexport            

aexport is a tool to support data migration between Altibase servers, but can be used for backup purposes.

This creates all the database object creation statements created on the Altibase server as a file named .sql.


It provides three methods to perform according to the purpose

  • All database objects
  • By database user
  • By object

Example of aexport execution result and file contents.

ls 
Code Block
languagebash
$ ls -l |
 
 head

Total 60

-rw-rw-rw- 1 eheejung
eheejung 
 eheejung  303 2019-07-12 13:15 ALL_ALT_TBL.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_DIR.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_FK.sql

-rw-rw-rw- 1 eheejung eheejung 1539 2019-07-12 13:15 ALL_CRT_INDEX.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_JOB.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_LIB.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_LINK.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_REP.sql

-rw-rw-rw- 1
eheejung eheejung    0
 eheejung eheejung    0 2019-07-12 13:15 ALL_CRT_SEQ.sql

...omitted...
 
cat 

 
$ cat ALL_CRT_TBL.sql |
 headconnect 
 head
connect "ALTITEST"
 
 /
 
 "ALTITEST"

--############################

--
  
  "ALTITEST"."ORDERS"
 
 
--############################

create
table 
 table "ORDERS"
(
    

(
    "ONO"
 
 BIGINT,
    

    "ORDER_DATE"
 
 DATE,

 

 

iloader

Like aexport, this is a tool to support data migration, but it can be used for backup purposes.

In table units, data is backed up in a text file that can be read by users.


 

Example of DEPARTMENT sample table iloader execution

cat 
Code Block
languagebash
$ cat SYS_DEPARTMENTS.dat

1001,"RESEARCH DEVELOPMENT DEPT
1  
 1   ","New
York      
 York       ",16

1002,"RESEARCH DEVELOPMENT DEPT
2  
 2   ","
Sydney        
Sydney         ",13

1003,"SOLUTION
DEVELOPMENT DEPT    
 DEVELOPMENT DEPT     ","
Osaka         
Osaka          ",14

2001,"QUALITY
ASSURANCE DEPT       
 ASSURANCE DEPT        ","
Seoul         
Seoul          ",17

3001,"CUSTOMERS
SUPPORT DEPT       
 SUPPORT DEPT        ","
London        
London         ",4

3002,"PRESALES
DEPT                
 DEPT                 ","
Peking        
Peking         ",5

4001,"MARKETING
DEPT               
 DEPT                ","
Brasilia      
Brasilia       ",8

4002,"BUSINESS
DEPT                
 DEPT                 ","Palo
Alto     
 Alto      ",7

 

Physical Backup

...

Physical backup is to copy files such as data files and log anchor files that make up the Altibase server and backing them up to a different physical location.

...