braid-text 0.2.111 → 0.2.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1313,7 +1313,7 @@ function create_braid_text() {
|
|
|
1313
1313
|
if (backup_init.started) return
|
|
1314
1314
|
backup_init.started = true
|
|
1315
1315
|
|
|
1316
|
-
|
|
1316
|
+
async function backup_braid_text_db() {
|
|
1317
1317
|
var path = require('path')
|
|
1318
1318
|
var src_dir = braid_text.db_folder
|
|
1319
1319
|
var backup_dir = braid_text.backups_folder
|
|
@@ -1382,7 +1382,10 @@ function create_braid_text() {
|
|
|
1382
1382
|
'/bin/cp', [src_path, backup_path])
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
}
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
backup_braid_text_db()
|
|
1388
|
+
setInterval(backup_braid_text_db, braid_text.backups_interval)
|
|
1386
1389
|
}
|
|
1387
1390
|
|
|
1388
1391
|
async function get_files_for_key(key) {
|