Examples of BackupFileRotation


Examples of org.goobi.io.BackupFileRotation

    if (ConfigMain.getIntParameter("numberOfMetaBackups") != 0) {
      numberOfBackups = ConfigMain.getIntParameter("numberOfMetaBackups");
    }

    if (numberOfBackups != 0) {
      BackupFileRotation bfr = new BackupFileRotation();
      bfr.setNumberOfBackups(numberOfBackups);
      bfr.setFormat("meta.*\\.xml");
      bfr.setProcessDataDirectory(getProcessDataDirectory());
      bfr.performBackup();
    } else {
      myLogger.warn("No backup configured for meta data files.");
    }
  }
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.