Searched refs:backupFile (Results 1 - 25 of 35) sorted by relevance

12

/forgerock/openidm-v4/openidm-maintenance/src/main/java/org/forgerock/openidm/maintenance/upgrade/
H A DUpdateFileLogEntry.java31 private String backupFile; field in class:UpdateFileLogEntry
100 return backupFile;
106 * @param backupFile location of the backup file.
109 public UpdateFileLogEntry setBackupFile(String backupFile) { argument
110 this.backupFile = backupFile;
146 ret.put("backupFile", getBackupFile());
H A DUpdateManagerImpl.java655 Path backupFile = staticFileUpdate.replace(path);
656 if (backupFile != null) {
661 fileEntry.setBackupFile(backupFile.toString());
698 Path backupFile = staticFileUpdate.replace(path);
700 if (backupFile != null) {
701 fileEntry.setBackupFile(backupFile.toString());
/forgerock/openam/openam-core/src/main/java/org/forgerock/openam/upgrade/
H A DEmbeddedOpenDJBackupManager.java63 File backupFile = getBackupFileLocation();
66 zipUtils.zipDirectory(opendjDirectory, backupFile);
104 File backupFile = Paths.get(baseDirectory, "backups", backupFilename).toFile();
105 if (backupFile.exists()) {
106 throw new ConfiguratorException("Upgrade cannot continue as backup file already exists! " + backupFile);
108 return backupFile;
H A DOpenDJUpgrader.java189 backupFile("config/config.ldif");
190 backupFile("config/admin-backend.ldif");
191 backupFile("config/java.properties");
278 private void backupFile(final String fileName) throws IOException { method in class:OpenDJUpgrader
281 final File backupFile = getBackupFileName(fileName);
283 if (backupFile.exists()) {
287 copy(currentFile.toPath(), backupFile.toPath());
312 final File backupFile = getBackupFileName(fileName);
315 copy(backupFile.toPath(), currentFile.toPath());
388 final File backupFile
[all...]
/forgerock/openam-v13/openam-tools/openam-diagnostics/openam-diagnostics-plugins/src/main/java/com/sun/identity/diagnostic/plugin/services/tamper/
H A DITamperDetector.java39 String backupFile,
37 detectTamper( String configPath, String backupFile, Set<String> dirFilter, Set<String> fileFilter ) argument
H A DChecksumCreator.java50 String backupFile,
62 fout = new FileOutputStream(backupFile);
48 detectTamper( String configPath, String backupFile, Set<String> dirFilter, Set<String> fileFilter ) argument
H A DTamperDetectionService.java113 String backupFile = tContext.getApplicationHome() +
143 configPath, backupFile, dirsFilter, filesFilter);
/forgerock/openidm-v4/openidm-maintenance/src/test/java/org/forgerock/openidm/maintenance/upgrade/
H A DBundleHandlerTest.java212 Path backupFile = null;
237 backupFile = Paths.get(new URI(bundlePathV1.toUri().toString().concat(ARCHIVE_EXTENSION)));
238 assertNotNull(backupFile);
248 if (backupFile != null) {
249 Files.delete(backupFile);
/forgerock/openam-v13/openam-core/src/main/java/org/forgerock/openam/upgrade/
H A DOpenDJUpgrader.java187 backupFile("config/config.ldif");
188 backupFile("config/admin-backend.ldif");
189 backupFile("config/java.properties");
277 private void backupFile(final String fileName) throws IOException { method in class:OpenDJUpgrader
280 final File backupFile = getBackupFileName(fileName);
282 if (backupFile.exists()) {
286 copy(currentFile.toPath(), backupFile.toPath());
311 final File backupFile = getBackupFileName(fileName);
314 copy(backupFile.toPath(), currentFile.toPath());
387 final File backupFile
[all...]
/forgerock/openam-v13/openam-tools/openam-installtools/src/main/java/com/sun/identity/install/tools/configurator/
H A DBackupFileTask.java46 FileUtils.backupFile(fileName, STR_BACK_UP_FILE_SUFFIX);
H A DMigrateServerLocatorHandler.java60 FileUtils.backupFile(locatorFile,
/forgerock/openam-v13/openam-upgrade/src/main/java/org/forgerock/openam/upgrade/
H A DUpgradeServices.java269 File backupFile = new File(backupDir + "servicebackup." + createdDate);
273 if (backupFile.exists()) {
274 debug.error("Upgrade cannot continue as backup file exists! " + backupFile.getName());
279 fout = new FileOutputStream(backupFile);
/forgerock/openam/openam-tools/openam-installtools/src/main/java/com/sun/identity/install/tools/configurator/
H A DBackupFileTask.java46 FileUtils.backupFile(fileName, STR_BACK_UP_FILE_SUFFIX);
H A DMigrateServerLocatorHandler.java60 FileUtils.backupFile(locatorFile,
/forgerock/openam/openam-upgrade/src/main/java/org/forgerock/openam/upgrade/
H A DUpgradeServices.java275 File backupFile = new File(backupDir + "servicebackup." + createdDate);
279 if (backupFile.exists()) {
280 debug.error("Upgrade cannot continue as backup file exists! " + backupFile.getName());
286 fout = new FileOutputStream(backupFile);
/forgerock/opendj2/src/server/org/opends/server/backends/task/
H A DTaskBackend.java1568 File backupFile = new File(backupPath + File.separator + backupFilename);
1571 if (! backupFile.exists())
1574 ERR_TASKS_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
1586 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1652 inputStream = new FileInputStream(backupFile);
1657 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1674 backupFile.getPath(), stackTraceToSingleLineString(e));
1698 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1798 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
/forgerock/opendj-b2.6/src/server/org/opends/server/backends/task/
H A DTaskBackend.java1690 File backupFile = new File(backupPath + File.separator + backupFilename);
1693 if (! backupFile.exists())
1696 ERR_TASKS_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
1708 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1774 inputStream = new FileInputStream(backupFile);
1779 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1796 backupFile.getPath(), stackTraceToSingleLineString(e));
1820 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1920 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
/forgerock/opendj2.6.2/src/server/org/opends/server/backends/task/
H A DTaskBackend.java1690 File backupFile = new File(backupPath + File.separator + backupFilename);
1693 if (! backupFile.exists())
1696 ERR_TASKS_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
1708 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1774 inputStream = new FileInputStream(backupFile);
1779 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1796 backupFile.getPath(), stackTraceToSingleLineString(e));
1820 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1920 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
/forgerock/opendj2-hg/src/server/org/opends/server/backends/task/
H A DTaskBackend.java1568 File backupFile = new File(backupPath + File.separator + backupFilename);
1571 if (! backupFile.exists())
1574 ERR_TASKS_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
1586 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1652 inputStream = new FileInputStream(backupFile);
1657 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1674 backupFile.getPath(), stackTraceToSingleLineString(e));
1698 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1798 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
/forgerock/opendj2-jel-hg/src/server/org/opends/server/backends/task/
H A DTaskBackend.java1690 File backupFile = new File(backupPath + File.separator + backupFilename);
1693 if (! backupFile.exists())
1696 ERR_TASKS_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
1708 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1774 inputStream = new FileInputStream(backupFile);
1779 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1796 backupFile.getPath(), stackTraceToSingleLineString(e));
1820 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
1920 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
/forgerock/opendj-b2.6/src/server/org/opends/server/extensions/
H A DConfigFileHandler.java3120 File backupFile = new File(backupPath + File.separator + backupFilename);
3123 if (! backupFile.exists())
3126 ERR_CONFIG_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
3138 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3207 inputStream = new FileInputStream(backupFile);
3212 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3229 backupFile.getPath(), stackTraceToSingleLineString(e));
3360 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3489 backupID, backupFile.getPath(), getExceptionMessage(e));
/forgerock/opendj2/src/server/org/opends/server/extensions/
H A DConfigFileHandler.java2752 File backupFile = new File(backupPath + File.separator + backupFilename);
2755 if (! backupFile.exists())
2758 ERR_CONFIG_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
2770 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
2839 inputStream = new FileInputStream(backupFile);
2844 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
2861 backupFile.getPath(), stackTraceToSingleLineString(e));
2992 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3121 backupID, backupFile.getPath(), getExceptionMessage(e));
/forgerock/opendj2.6.2/src/server/org/opends/server/extensions/
H A DConfigFileHandler.java3120 File backupFile = new File(backupPath + File.separator + backupFilename);
3123 if (! backupFile.exists())
3126 ERR_CONFIG_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
3138 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3207 inputStream = new FileInputStream(backupFile);
3212 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3229 backupFile.getPath(), stackTraceToSingleLineString(e));
3360 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3489 backupID, backupFile.getPath(), getExceptionMessage(e));
/forgerock/opendj2-jel-hg/src/server/org/opends/server/extensions/
H A DConfigFileHandler.java2986 File backupFile = new File(backupPath + File.separator + backupFilename);
2989 if (! backupFile.exists())
2992 ERR_CONFIG_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
3004 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3073 inputStream = new FileInputStream(backupFile);
3078 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3095 backupFile.getPath(), stackTraceToSingleLineString(e));
3226 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3355 backupID, backupFile.getPath(), getExceptionMessage(e));
/forgerock/opendj2-hg/src/server/org/opends/server/extensions/
H A DConfigFileHandler.java2752 File backupFile = new File(backupPath + File.separator + backupFilename);
2755 if (! backupFile.exists())
2758 ERR_CONFIG_RESTORE_NO_SUCH_FILE.get(backupID, backupFile.getPath());
2770 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
2839 inputStream = new FileInputStream(backupFile);
2844 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
2861 backupFile.getPath(), stackTraceToSingleLineString(e));
2992 backupID, backupFile.getPath(), stackTraceToSingleLineString(e));
3121 backupID, backupFile.getPath(), getExceptionMessage(e));

Completed in 371 milliseconds

12