question: public void revertBackupFile ( String name ) { File file = findFile ( name ) ; if ( file == null ) { log . info ( "No " + name + " file to revert" ) ; } else { String backupName = backupFileName ( file . getAbsolutePath ( ) ) ; File backupFile = findFile ( backupName ) ; if ( backupFile != null ) { log . info ( "No " + backupName + " backup file to revert" ) ; if ( file . delete ( ) ) { log . debug ( "deleted original file " + name ) ; } if ( backupFile . renameTo ( new File ( name ) ) ) { log . debug ( "created original file " + name ) ; } else { log . error ( "could not create original file " + name ) ; } } } }
target:  Revert to original file from backup. Use this for testing backup files.