home‎ > ‎restore‎ > ‎

restore full

Completely restores the instance with all database backups and logical log transactions applied. The current transaction log
will be salvaged if possible before the restore.

usage

infx restore type=full inst [ rename tapedev force=yes|no online=yes|no ]
     complete restore
       required:
         inst - instance name
       optional:
         rename - the name of a file containing chunk mapping
         tapedev - name of directory to store backup
         force - force the instance offline first
         online - bring the instance online after

example

Do a full restore from the most recent backups

demo1@bobii:/home/informix>infx restore demo1 type=full

... snip ...
Restore is using file /infx/inst/demo1/backup/db/bobii_5_L0 ...
Using the backup and restore filter gzip -dc.

Archive Tape Information

Tape type:      Archive Backup Tape
Online version: IBM Informix Dynamic Server Version 11.70.FC4IE
Archive date:   Mon Mar 19 16:49:47 2012
User id:        informix
Terminal id:    ?
Archive level:  0
Tape device:    /infx/inst/demo1/backup/db/
Tape blocksize (in k): 32
Tape size (in k): system defined for directory
Tape number in series: 1
Backup filter:  gzip -c

Spaces to restore:1 [root                                                                      ]
2 [blob01                                                                                      ]
3 [plog                                                                                        ]
4 [log01                                                                                       ]
5 [log02                                                                                       ]
6 [dat01                                                                                       ]
7 [dat02                                                                                       ]
8 [dat03                                                                                       ]
9 [dat04                                                                                       ]
10 [idx01                                                                                      ]
11 [idx02                                                                                      ]
12 [idx03                                                                                      ]
13 [idx04                                                                                      ]
14 [ltmp01                                                                                     ]
15 [sblob01                                                                                    ]

Archive Information

IBM Informix Dynamic Server Copyright 2001, 2011  IBM Corporation.
Initialization Time       02/18/2012 14:44:10
System Page Size          2048
Version                   26
Index Page Logging        ON since 02/18/2012 14:44:10
Archive CheckPoint Time   03/19/2012 16:49:47

Dbspaces
number   flags    fchunk   nchunks  flags    owner                            name
1        40001    1        2        N  BA    informix                         root
2        40001    2        1        N  BA    informix                         plog
3        40001    3        1        N  BA    informix                         log01
4        40001    4        1        N  BA    informix                         log02
5        40001    5        1        N  BA    informix                         dat01
6        40001    6        1        N  BA    informix                         dat02
7        40001    7        1        N  BA    informix                         dat03
8        40001    8        1        N  BA    informix                         dat04
9        40001    9        1        N  BA    informix                         idx01
10       40001    10       1        N  BA    informix                         idx02
11       40001    11       1        N  BA    informix                         idx03
12       40001    12       1        N  BA    informix                         idx04
13       42001    13       1        N TBA    informix                         tmp01
14       42001    14       1        N TBA    informix                         tmp02
15       40001    15       1        N  BA    informix                         ltmp01
16       40011    16       1        N BBA    informix                         blob01
17       48001    17       3        N SBA    informix                         sblob01


Chunks
chk/dbs offset   size     free     bpages   flags pathname
1   1   0        100000   92535             PO-BE /infx/inst/demo1/chks/root.001
2   2   0        50000    2447              PO-B- /infx/inst/demo1/chks/plog.000
3   3   0        50000    447               PO-B- /infx/inst/demo1/chks/log01.000
4   4   0        50000    447               PO-B- /infx/inst/demo1/chks/log02.000
5   5   0        50000    13738             PO-B- /infx/inst/demo1/chks/dat01.000
6   6   0        12500    12447             PO-B- /infx/inst/demo1/chks/dat02.000
7   7   0        12500    12447             PO-B- /infx/inst/demo1/chks/dat03.000
8   8   0        12500    12447             PO-B- /infx/inst/demo1/chks/dat04.000
9   9   0        50000    20631             PO-B- /infx/inst/demo1/chks/idx01.000
10  10  0        12500    12447             PO-B- /infx/inst/demo1/chks/idx02.000
11  11  0        12500    12447             PO-B- /infx/inst/demo1/chks/idx03.000
12  12  0        12500    12447             PO-B- /infx/inst/demo1/chks/idx04.000
13  13  0        12500    12422             PO-B- /infx/inst/demo1/chks/tmp01.000
14  14  0        12500    12447             PO-B- /infx/inst/demo1/chks/tmp02.000
15  15  0        12500    12447             PO-B- /infx/inst/demo1/chks/ltmp01.000
16  16  0        12500             3125     POBB- /infx/inst/demo1/chks/blob01.000
17  17  0        12500    559               POSB- /infx/inst/demo1/chks/sblob01.000
18  17  0        10000    0                 POSB- /infx/inst/demo1/chks/sblob01.001
19  17  10000    10000    7500              POSB- /infx/inst/demo1/chks/sblob01.001
20  1   0        12500    11817             PO-B- /infx/inst/demo1/chks/pool.002

Restore is using file /infx/inst/demo1/backup/db/bobii_5_L0 ...
Using the backup and restore filter gzip -dc.

Continue restore? (y/n)y
Do you want to back up the logs? (y/n)y
Using the backup and restore filter gzip -c.
...snip...

Once all backups and logical logs are applied, the instance will be in quiescent mode. Use the onmode command to bring it online

onmode -m

Alternately, specify the online option on the restore command line, infx will bring the instance online when the restore completes.

demo1@bobii:/home/informix>infx restore demo1 type=full online=yes

The restore will not start over an online instance. To automatically shut the instance down first, specify the force option.

demo1@bobii:/home/informix>infx restore demo1 type=full force=yes

notes

Consult the Informix Backup & Restore guide for what is required for a restore to be valid. In summary:
  • Current ONCONFIG values must match the backup:
    • ROOTPATH
    • ROOTNAME
    • ROOTOFFSET
    • MIRROR
  • Depending on the type of backup, these may also be required to match:
    • TAPEBLK
    • TAPESIZE
    • LTAPEBLK
    • LTAPESIZE
  • Chunk files must be available for all chunks contained in the backup