Beispiel #1
0
    def criar_banco():
        try:
            if Configuracao.os_system() == 'Windows':
                path_db = 'c:/nbackup/db/nbackup.db'
            else:
                path_db = '/home/marcelo/python/nbackup/db/nbackup.db'

            arquivo = open(path_db)
        except FileNotFoundError:
            Backup.create_table()
            Arquivo.create_table()
            Log.info('criando banco de dados')
Beispiel #2
0
 def __init__(self):
     config_server = Configuracao().get_server_config()
     self._os = Configuracao.os_system()
     self.config = config_server.config_ftp()