String bkpPath = outPath + ".old" + "-" + System.currentTimeMillis();
if ( outPath.startsWith( "jdbc:" ) )
{
if ( dataName.startsWith( "jdbc:" ) )// We need to backup the old data
new JDBCLoader().load( bkpPath ).add( input );
ModelRDB dbm = (ModelRDB) new JDBCLoader().load( outPath );
dbm.begin().remove( input ).add( repaired ).commit();
}
else
{
File outFile = new File( outPath );
if ( outFile.exists() ) // Don't overwrite the old file if we can help it!