Download Jar. Libraryless. Click here for Pure Java version (3293L/20K).
1 | svoid restoreConceptsBackup(S dbID, File backup, bool doIt) {
|
2 | File file = conceptsFile(dbID); |
3 | S msg = "RESTORING: " + backup; |
4 | File log = javaxDataDir("db-restores.log");
|
5 | if (doIt) logQuotedWithTime(log, msg); |
6 | print(stringIf(!doIt, "[would be] ") + msg); |
7 | if (doIt) {
|
8 | clearConceptsOf(dbID); |
9 | copyFile(backup, file); |
10 | print(msg = "DB RESTORED!"); |
11 | if (doIt) logQuotedWithTime(log, msg); |
12 | } |
13 | } |
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: | 692 / 1889 |
| Referenced in: | [show references] |