Exemplo n.º 1
0
 def _perform_restore(self, backup_id, context, restore_location, app):
     LOG.info(_("Restoring database from backup %s" % backup_id))
     try:
         backup.restore(context, backup_id, restore_location)
     except Exception as e:
         LOG.error(e)
         LOG.error("Error performing restore from backup %s", backup_id)
         app.status.set_status(rd_models.ServiceStatuses.FAILED)
         raise
     LOG.info(_("Restored database successfully"))
Exemplo n.º 2
0
 def _perform_restore(self, backup_id, context, restore_location):
     LOG.info(_("Restoring database from backup %s" % backup_id))
     backup.restore(context, backup_id, restore_location)
     LOG.info(_("Restored database"))