Package org.apache.openmeetings.backup

Examples of org.apache.openmeetings.backup.BackupExport.performExport()


          boolean includeFiles = Boolean.parseBoolean(cmdl.getOptionValue("exclude-files", "true"));
          File backup_dir = new File(OmFileHelper.getUploadTempDir(), "" + System.currentTimeMillis());
          backup_dir.mkdirs();
         
          BackupExport export = getApplicationContext(ctxName).getBean(BackupExport.class);
          export.performExport(f, backup_dir, includeFiles);
          FileHelper.removeRec(backup_dir);
          backup_dir.delete();
        } catch (Exception e) {
          handleError("Backup failed", e);
        }
View Full Code Here


          boolean includeFiles = !cmdl.hasOption("exclude-files");
          File backup_dir = new File(OmFileHelper.getUploadTempDir(), "" + System.currentTimeMillis());
          backup_dir.mkdirs();
         
          BackupExport export = getApplicationContext(ctxName).getBean(BackupExport.class);
          export.performExport(f, backup_dir, includeFiles);
          FileHelper.removeRec(backup_dir);
          backup_dir.delete();
        } catch (Exception e) {
          handleError("Backup failed", e);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.