<reponame>wgmueller1/unicorn<gh_stars>0
from elasticsearch import Elasticsearch

import sys
import os

# default configuration settings (localhost:9200)
es = Elasticsearch()
DEFAULT_INDEX = 'dossiers'

q = {
        "indices": DEFAULT_INDEX,
        "ignore_unavailable": False,
        "include_global_state": True
        }
es.snapshot.create(repository='unicorn_backups', body=q,
        snapshot='2015-03-30_all_focus_africa')
