# -*- coding: utf-8 -*-
# Copyright (C) 2017, 2018

""" Library used for backup and restore operations
"""

import subprocess
import time
import os
import asyncio
import json
from enum import IntEnum

from foglamp.common import logger
from foglamp.common.storage_client import payload_builder
from foglamp.common.storage_client.storage_client import StorageClientAsync
from foglamp.common.configuration_manager import ConfigurationManager

import foglamp.plugins.storage.postgres.backup_restore.exceptions as exceptions

__author__ = "Stefano Simonelli"
__copyright__ = "Copyright (c) 2017, 2018 OSIsoft, LLC"
__license__ = "Apache 2.0"
__version__ = "${VERSION}"