@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(); } }
@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(); } }