def perform_backup
      begin
        prepare_backup
        update_status "Backing up #{rds_id} from account #{account_name}"
        create_disconnected_rds
        download_data_from_tmp_rds    # populates @sql_file
        delete_disconnected_rds
        upload_output_to_s3
        update_status "Backup of #{rds_id} complete"
        send_mail
      rescue Exception => e
        update_status "ERROR: #{e.message.split("\n").first}", 500
        raise e
      end
    end
def perform_backup
      begin
        prepare_backup
        update_status "Backing up #{rds_id} from account #{account_name}"
        create_disconnected_rds
        download_data_from_tmp_rds    # populates @sql_file
        delete_disconnected_rds
        upload_output_to_s3
        update_status "Backup of #{rds_id} complete"
        send_mail
      rescue Exception => e
        update_status "ERROR: #{e.message.split("\n").first}", 500
        raise e
      end
    end
Top-level, long-running method for performing the backup.