mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2025-04-01 20:24:18 +02:00
Removed public data backup
This commit is contained in:
8
utils.js
8
utils.js
@@ -12,7 +12,6 @@ var fs = require('fs');
|
|||||||
var logger = require('./logger.js');
|
var logger = require('./logger.js');
|
||||||
|
|
||||||
const recievedFile = "stats/recieved";
|
const recievedFile = "stats/recieved";
|
||||||
const publicFile = "public/data/public";
|
|
||||||
const staticFile = "public/data/static";
|
const staticFile = "public/data/static";
|
||||||
const manFile = "public/man.html";
|
const manFile = "public/man.html";
|
||||||
const logFile = "stats/logs";
|
const logFile = "stats/logs";
|
||||||
@@ -57,11 +56,4 @@ function WriteBackup() {
|
|||||||
logger.Log("[ERR ]: Error backing up recieved file!", logger.GetColor("redbg"));
|
logger.Log("[ERR ]: Error backing up recieved file!", logger.GetColor("redbg"));
|
||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
WriteFileAsync(ReadFile(publicFile), 'public/backs/public_' + new Date().toString());
|
|
||||||
//logger.Log('[SAVE]: Public questions backup wrote');
|
|
||||||
} catch (e) {
|
|
||||||
logger.Log("[ERR ]: Error backing up public file!", logger.GetColor("redbg"), true);
|
|
||||||
console.log(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user