Download Jar. Libraryless. Click here for Pure Java version (3293L/20K).
svoid restoreConceptsBackup(S dbID, File backup, bool doIt) { File file = conceptsFile(dbID); S msg = "RESTORING: " + backup; File log = javaxDataDir("db-restores.log"); if (doIt) logQuotedWithTime(log, msg); print(stringIf(!doIt, "[would be] ") + msg); if (doIt) { clearConceptsOf(dbID); copyFile(backup, file); print(msg = "DB RESTORED!"); if (doIt) logQuotedWithTime(log, msg); } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031049 |
Snippet name: | restoreConceptsBackup |
Eternal ID of this version: | #1031049/1 |
Text MD5: | cda80a6cdbf96100298aef0c07bb929d |
Transpilation MD5: | 5d146cef01968ffbaa289a1bf35a7043 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-04-26 15:43:55 |
Source code size: | 426 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 216 / 761 |
Referenced in: | [show references] |