Setting up Restore

Configuring the messaging service is enough for restore
  • In the configuration file:
  <configSections>
    <section name="docaBusService" type="DocaAzure.Messaging.Config.BusServiceConfiguration, DocaAzure.Messaging" />
  </configSections>

  <docaBusService>
    <queues>
      <clear/>

      <add queueName="restoretables" maxDequeueCount="2" concurrentProcessingThrottle="10" errorQueueName="error" purgeOnStartup="false">
        <regularQueueSchedule initialPollInterval="10000" pollIntervalIncrement="1000" maximumWaitTimeWhenIdle="60000"/>
        <azureQueueTransport messageInvisibleTime="7200000"/>
      </add>

      <add queueName="restoreblobs" maxDequeueCount="2" concurrentProcessingThrottle="10" errorQueueName="error" purgeOnStartup="false">
        <regularQueueSchedule initialPollInterval="10000" pollIntervalIncrement="1000" maximumWaitTimeWhenIdle="60000"/>
        <azureQueueTransport messageInvisibleTime="7200000"/>
      </add>

    </queues>
  </docaBusService>
  • And on the role Startup
            // configure bus service
            BusService.Service
                .ConfigureQueuesFromFile()
                .RegisterHandlers(typeof(BackupHandlersAssemblyMarker).Assembly);

            // start bus service
            BusService.Service.Start();
  • In order to trigger the restore you can use DocaAzure.Backup.Cmdlets

Last edited Jun 8, 2011 at 10:56 PM by alexeikadyrov, version 2

Comments

No comments yet.