File backup_dir = new File(omUploadTemp, "" + System.currentTimeMillis());
backup_dir.mkdirs();
shutdownScheduledJobs(ctxName);
BackupExport export = getApplicationContext(ctxName).getBean(BackupExport.class);
export.performExport(file, backup_dir, includeFiles, omHome.getAbsolutePath());
export.deleteDirectory(backup_dir);
backup_dir.delete();
} catch (Exception e) {
handleError("Backup failed", e);
}