def get_commands():
    logger.debug('Config: ', config)
    locations = config['backup']['locations']
    commands = []
    _test_locations()
    commands = [(_get_cmd(location['src'], location['dest'], 'noexec'), _get_cmd(location['src'], location['dest'], 'exec')) for location in locations]
    _print_commands(commands)
    return commands
def get_commands():
    logger.debug('Config: ', config)
    locations = config['backup']['locations']
    commands = []
    _test_locations()
    commands = [(_get_cmd(location['src'], location['dest'], 'noexec'), _get_cmd(location['src'], location['dest'], 'exec')) for location in locations]
    _print_commands(commands)
    return commands