tiro-notes 0.40.67 → 0.40.68
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/cli.js +2 -1
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -171,7 +171,8 @@ const startBackupScript = async (argsObj, dataFolder) => {
|
|
|
171
171
|
// are we between 1am-5am ?
|
|
172
172
|
const isBetween1am5am = new Date().getHours() >= 1 && new Date().getHours() <= 5
|
|
173
173
|
if ((diff < 0 && isBetween1am5am) || debugBackupNow) {
|
|
174
|
-
|
|
174
|
+
debugBackupNow = false
|
|
175
|
+
console.log(`[BACKUP] time has come, BACKUP! (debugBackupNow:${debugBackupNow})`);
|
|
175
176
|
|
|
176
177
|
let backupCli = `${replaceTimestampCli()}; mkdir '${backupFolder}'; mkdir '${backupFolder}/backups'; cd '${backupFolder}'; echo '[${new Date().toLocaleString()}] -> new backup started' >> backups.txt; ${tarExec} --xz --verbose --create --file="backups/tiro.$(ls backups/ | wc -l | sed 's/^ *//;s/ *$//').tar.xz" '${dataFolder}' --listed-incremental='${backupFolder}metadata.snar'; ${postBackupScript}`
|
|
177
178
|
// append to backup CLI current timestamp to last_backup_timestamp
|