Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91883834
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: DB2/Informix

2008-03-19 20:50:13

 

  onbar就是备份,在onconfig文件里面把tapedev 设成你的磁带设备。还有ltapedev也设成你的磁带设备。然后把onconfig中的onbar相关项目配置好。重起Informix Server,你的逻辑日志就会自动备份到你的磁带设备上了。然后, 你需要备份onbar -b -w, 需要恢复obar -r -p 或者 -l,还有一个很好的功能,onbar -t 时间,可以恢复到任意时间点。 
  如果要使用onbar,必须要有存储管理器,这一般是其它厂商的产品,informix和这些厂商都遵守XBSA协议,也就是相应的API接口.否则,只能使用ontape备份了.
另外,informix自己也带了一个简单的存储管理器,你可以参考
Informix Backup and Restore Guide, December 1999这本手册.  

/usr/informix/bin/onbar 

BACKUP:
=======
-b [-L ] [-f ] []
-b -w [-L ]
-b -F
-l [-c] [-s]
   -b backup
   -c backup current logical log
   -f pathname of file containing list of dbspaces, blobspaces
   -F fake backup
   -l backup full logical logs
   -L backup level: 0, 1, or 2
   -w whole system backup
   -s salvage logs
    list of dbspaces, blobspaces to backup 

RESTORE
========
-r [-e] [-t | -n ] [-f ] []
-r [-e] -p [-t ] [-f ] []
-r -l  [-t | -n ] [-f ] []
-r [-e] -w [-p] [-t | -n ]
-RESTART
   -e external restore
   -f pathname of file containing list of dbspaces, blobspaces
   -l logical restore
   -n last logical log to restore
   -p physical restore
   -r restore
   -t point in time to stop restore.
    list of dbspaces, blobspaces to restore
   -w whole system to restore
   -RESTART restart an interrupted restore
阅读(982) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~