private static void restoreFromBackup(final File backupDir) throws SQLException {
  final String url="jdbc:derby:ta_users;restoreFrom=" + backupDir.getAbsolutePath();
  final Properties props=getDbProps();
  final Connection con=DriverManager.getConnection(url,props);
  con.close();
}

private static void restoreFromBackup ( final File backupDir ) throws SQLException { final String url = "jdbc:derby:ta_users;restoreFrom=" + backupDir . getAbsolutePath ( ) ; final Properties props = getDbProps ( ) ; final Connection con = DriverManager . getConnection ( url , props ) ; con . close ( ) ; }
this must be the first db call made . run database as a main method to run the backup .
