安装有reports的engine使用engine-backup程序备份数据库的方法

 使用engine-backup程序备份数据库及配置文件
  1. engine-backup是将备份和恢复统一到一起的程序,根据用户的参数而做区别。
  2. 先来查看engine-backup的使用帮助:
                               
     engine-backup --help
    engine-backup: backup and restore ovirt-engine environment
    USAGE:
        /usr/bin/engine-backup [--mode=MODE] [--scope=SCOPE] [--file=FILE] [--log=FILE]
     MODE is one of the following:
        backup                  backup system into FILE
        restore                 restore system from FILE
     SCOPE is one of the following:
        all                     complete backup/restore (default)
        db                      database only
     --file=FILE                file to use during backup or restore
     --log=FILE                 log file to use
     --change-db-credentials    activate the following options, to restore
                                the database to a different location etc.
                                If used, existing credentials are ignored.
     --db-host=host             set database host
     --db-port=port             set database port
     --db-user=user             set database user
     --db-passfile=file         set database password - read from file
     --db-password=pass         set database password
     --db-password              set database password - interactively
     --db-name=name             set database name
     --db-secured               set a secured connection
     --db-secured-validation    validate host
    
    
    
  3. 以下是使用全部参数的例子:
                                
     engine-backup --mode=backup --scope=all --file=backup --log=backup.log --change-db-credentials --db-host=localhost --db-port=5432 --db-user=engine --db-password=ffdC9lhX --db-name=engine
    Backing up...
    Done.
    
    
    

     这是官网的使用说明,但是在安装report的engine程序是无法通过上面的过程恢复的,因为engine-backup程序中关于report的参数选项并没有开放出来,下面就是report数据库备份恢复的参数:

 --dwh-db-host=host                 set dwh database host
 --dwh-db-port=port                 set dwh database port
 --dwh-db-user=user                 set dwh database user
 --dwh-db-passfile=file             set dwh database password - read from file
 --dwh-db-password=pass             set dwh database password
 --dwh-db-password                  set dwh database password - interactively
 --dwh-db-name=name                 set dwh database name
 --dwh-db-secured                   set a secured connection for dwh
 --dwh-db-secured-validation        validate host for dwh
 --change-reports-db-credentials    activate the following options, to restore
                                    the Reports database to a different location
                                    etc. If used, existing credentials are ignored.
 --reports-db-host=host             set reports database host
 --reports-db-port=port             set reports database port
 --reports-db-user=user             set reports database user
 --reports-db-passfile=file         set reports database password - read from file
 --reports-db-password=pass         set reports database password
 --reports-db-password              set reports database password - interactively
 --reports-db-name=name             set reports database name
 --reports-db-secured               set a secured connection for reports
 --reports-db-secured-validation    validate host for reports

以下是使用全部参数的例子:

engine-backup --mode=restore --file=backup.data --log=backup.log --change-db-credentials --db-host=localhost --db-name=engine --db-user=engine --db-password=engine --change-dwh-db-credentials --dwh-db-host=localhost --dwh-db-name=ovirt_engine_history --dwh-db-user=engine --dwh-db-password=engine --change-reports-db-credentials --reports-db-host=localhost --reports-db-user=engine --reports-db-name=ovirt_engine_reports --reports-db-password=engine


  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值