Ejemplo n.º 1
0
 @Override
 public void restore(AbstractConnectionPool connPool, String path) throws ExceptionDBRestoreError {
   try {
     FileIO.copyFile(path, connPool.getDBName());
   } catch (FileNotFoundException ex) {
     throw new ExceptionDBRestoreError();
   } catch (IOException ex) {
     throw new ExceptionDBRestoreError();
   }
 }
Ejemplo n.º 2
0
 @Override
 public void backup(AbstractConnectionPool connPool, String path) throws ExceptionDBBackupError {
   try {
     FileIO.copyFile(connPool.getDBName(), path);
   } catch (FileNotFoundException ex) {
     throw new ExceptionDBBackupError();
   } catch (IOException ex) {
     throw new ExceptionDBBackupError();
   }
 }