#!/usr/bin/env python

import os
import logging
import time
from socket import gethostname

import xtrabackup2swift


use_swift = True


(options, args) = xtrabackup2swift.cli_options()

log_file = options.log_file
logging.StreamHandler(stream=log_file)
logging.basicConfig(filename=log_file, level=logging.INFO)

LOG = logging.getLogger(__name__)

if __name__ == '__main__':
    xtrabackup2swift.run_backup(options)
