merge #41
2760
package-lock.json
generated
2760
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -41,13 +41,13 @@
|
|||||||
"googleapis": "^67.0.0",
|
"googleapis": "^67.0.0",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"node-localstorage": "^2.1.6",
|
"node-localstorage": "^2.1.6",
|
||||||
"open": "^7.3.1",
|
"open": "^7.4.2",
|
||||||
"properties-to-json": "^0.1.7",
|
"properties-to-json": "^0.1.7",
|
||||||
"qr-image": "^3.2.0",
|
"qr-image": "^3.2.0",
|
||||||
"qrcode": "^1.4.4",
|
"qrcode": "^1.4.4",
|
||||||
"request-ip": "^2.1.3",
|
"request-ip": "^2.1.3",
|
||||||
"shelljs": "^0.8.4",
|
"shelljs": "^0.8.4",
|
||||||
"systeminformation": "^5.0.10",
|
"systeminformation": "^5.3.3",
|
||||||
"telegraf": "^4.0.0"
|
"telegraf": "^4.0.0"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
|
@ -14,10 +14,6 @@ module.exports.World_BAckup = () => {
|
|||||||
const world_name = JSON.parse(java_pro(fs.readFileSync(path.join(bds.bds_dir_java, "server.properties"), "utf8").replaceAll("-", "_"))).level_name
|
const world_name = JSON.parse(java_pro(fs.readFileSync(path.join(bds.bds_dir_java, "server.properties"), "utf8").replaceAll("-", "_"))).level_name
|
||||||
dir_zip = path.join(bds.bds_dir_java, world_name) //`${require("../index").bds_dir_bedrock}/${world_name}/`
|
dir_zip = path.join(bds.bds_dir_java, world_name) //`${require("../index").bds_dir_bedrock}/${world_name}/`
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* Before we can start it is good for the server not to have a Corrupted Backup
|
|
||||||
* this is only necessary once after the server has started manually
|
|
||||||
*/
|
|
||||||
if (bds.bds_detect()){bds.stop()}
|
if (bds.bds_detect()){bds.stop()}
|
||||||
var zip = new AdmZip();
|
var zip = new AdmZip();
|
||||||
zip.addLocalFolder(dir_zip);
|
zip.addLocalFolder(dir_zip);
|
||||||
@ -54,20 +50,13 @@ module.exports.Drive_backup = () => {
|
|||||||
* this is only necessary once after the server has started manually
|
* this is only necessary once after the server has started manually
|
||||||
*/
|
*/
|
||||||
if (bds.bds_detect()){bds.stop()}
|
if (bds.bds_detect()){bds.stop()}
|
||||||
var status_b = true
|
|
||||||
var zip = new AdmZip();
|
var zip = new AdmZip();
|
||||||
zip.addLocalFolder(dir_zip);
|
zip.addLocalFolder(dir_zip);
|
||||||
zip.addZipComment(`Backup zip file in ${today}. \nBackup made to ${process.platform}, Free and open content for all\n\nSirherobrine23© By Bds Maneger.`);
|
zip.addZipComment(`Backup zip file in ${today}. \nBackup made to ${process.platform}, Free and open content for all\n\nSirherobrine23© By Bds Maneger.`);
|
||||||
zip.writeZip(name);
|
zip.writeZip(name);
|
||||||
let es = 1;
|
return {
|
||||||
for(es == "0";es++;){
|
|
||||||
if (!(status_b)) break
|
|
||||||
}
|
|
||||||
const js_ = {
|
|
||||||
"file_path": name,
|
"file_path": name,
|
||||||
"file_name": `bds_backup_World_${today}.zip`,
|
"file_name": `bds_backup_World_${today}.zip`
|
||||||
"id": undefined
|
|
||||||
}
|
}
|
||||||
return js_
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user