allow to create incremential backups at 00:00 again (scripts will have to deal with eventual overlapses between days)

This commit is contained in:
HF 2020-05-28 12:13:39 +02:00
parent 8adcf6b85c
commit 6d18be7ee3

View File

@ -84,11 +84,6 @@ export async function incrementialBackupRedis(
const date = new Date();
let hours = date.getHours();
let minutes = date.getMinutes();
if (!hours && !minutes) {
// eslint-disable-next-line max-len
console.log('Incremential Backup was scheduled at 00:00 which in general isn\'t very good, skipping it.');
return;
}
if (hours < 10) hours = `0${hours}`;
if (minutes < 10) minutes = `0${minutes}`;
const canvasTileBackupDir = `${canvasBackupDir}/${hours}${minutes}`;