以下是在Ubuntu上备份和恢复Informix数据的常用方法:
dbexport -d 数据库名 -c "密码" -f 备份文件名dbimport -d 数据库名 -c "密码" -f 备份文件名tar -czvf 备份文件.tar.gz /路径/到/数据库文件 /路径/到/配置文件tar -xzvf 备份文件.tar.gz -C /恢复路径ontape -s -L 0(需指定备份路径)ontape -ronbar -b -c -f 备份文件路径onbar -rduplicity --full-if-older-than 3M /数据路径 file://备份目录ontape/dbexport,大规模用onbar。