Commit ce49cf63 authored by frankie's avatar frankie 💬

correction on server backup

parent 9a7f66b6
......@@ -22,7 +22,7 @@
"_resolved": "https://registry.npmjs.org/browse-directory/-/browse-directory-0.0.3.tgz",
"_shasum": "5d09ad770c2fbf1ac99837013daae6e52d0626b4",
"_spec": "browse-directory",
"_where": "/home/frankiezafe/projects/sisyphus/public/nodejs",
"_where": "/var/www/scripts",
"author": {
"name": "Ouandi Mbiandja Hoffer Fleury"
},
......
{
"_args": [
[
"moment",
"/home/frankiezafe/projects/sisyphus/public/nodejs"
]
],
"_from": "[email protected]",
"_from": "moment",
"_id": "[email protected]",
"_inCache": true,
"_installable": true,
"_inBundle": false,
"_integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==",
"_location": "/moment",
"_nodeVersion": "9.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/moment_2.22.1_1523772410351_0.7220332966594789"
},
"_npmUser": {
"email": "[email protected]",
"name": "marwahaha"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"name": "moment",
"type": "tag",
"registry": true,
"raw": "moment",
"name": "moment",
"escapedName": "moment",
"rawSpec": "",
"scope": null,
"spec": "latest",
"type": "tag"
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz",
"_shasum": "529a2e9bf973f259c9643d237fda84de3a26e8ad",
"_shrinkwrap": null,
"_spec": "moment",
"_where": "/home/frankiezafe/projects/sisyphus/public/nodejs",
"_where": "/var/www/scripts",
"author": {
"email": "[email protected]",
"name": "Iskren Ivov Chernev",
"email": "[email protected]",
"url": "https://github.com/ichernev"
},
"bugs": {
"url": "https://github.com/moment/moment/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "Tim Wood",
......@@ -71,7 +58,7 @@
"url": "https://github.com/oire"
}
],
"dependencies": {},
"deprecated": false,
"description": "Parse, validate, manipulate, and display dates",
"devDependencies": {
"benchmark": "latest",
......@@ -106,15 +93,6 @@
"typescript": "^1.8.10",
"uglify-js": "latest"
},
"directories": {},
"dist": {
"fileCount": 364,
"integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ==",
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa0uv7CRA9TVsSAnZWagAAk30QAJyUB9vpbvc7iSW6+YLG\nUmOxZsrKKzBsw7WDYHPdQCCgEeV4Ajz5FHFbm84ApjLDiK9nZqqXOcKyW13D\ntaG+ky5FX20SVLFUra1Od7Y3k+sGDkVhM+UIT1VvcRSVMj6xd26M+4ise1XL\nWOIEpg3vOFuswZKYrjVQuBCUSUW1cHpFl6OudN1OP6cOPYBoz9BWpA5jujwf\nEb2lXUfLp98NY14p7uGfuUZdCGgAtpdjhNcD3qq3AGtsAWp5PxTKIip+x4/z\n6Fn7/zNwtzhTsCFH9eTbnUIi2p//y509h2kJRAEdODj2FXu7aP8EriRPTkR2\nrOhf9TE1yMZx7KVtUdQd26Kjmunfzo77+BsfqbrqNcax0pyao3c7MKK8DeoO\nrr8pwKJZYoCtvKK60C/Bhv5moyxuwv4uK7qmiRsHEJcX6C4ZS3G+fXCcJ/wx\n2j70/8Zd1HcHOWciS/iWmUCcyVGWIUN/skFRxp/XtXtO9OCzJd/u2XGLVsSK\nZQg+HJjU/eJ41/taH6PW1E2Jopa2U9gh++rqGvXVnO7Irm+NEGm/qEGunBAr\nYMISJ5OEB4q3s8sUFxIOcKMR1nV5TPRVjSvw5eGgmqt0Uyg/n72I80mho7Kq\n6yPlbhonpjNP9usEDVf35YBEPjNz4EYyh66GLBXK2DHZvCbJ+6NhT8zvFE9D\n3pzO\r\n=5KU7\r\n-----END PGP SIGNATURE-----\r\n",
"shasum": "529a2e9bf973f259c9643d237fda84de3a26e8ad",
"tarball": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz",
"unpackedSize": 2714142
},
"dojoBuild": "package.js",
"ender": "./ender.js",
"engines": {
......@@ -123,56 +101,32 @@
"homepage": "http://momentjs.com",
"jsnext:main": "./src/moment.js",
"jspm": {
"buildConfig": {
"uglify": true
},
"files": [
"locale",
"moment.js",
"moment.d.ts",
"moment.js"
"locale"
],
"map": {
"moment": "./moment"
},
"buildConfig": {
"uglify": true
}
},
"keywords": [
"moment",
"date",
"ender",
"time",
"parse",
"format",
"validate",
"i18n",
"l10n",
"moment",
"parse",
"time",
"validate"
"ender"
],
"license": "MIT",
"main": "./moment.js",
"maintainers": [
{
"name": "ichernev",
"email": "[email protected]"
},
{
"name": "maggiepint",
"email": "[email protected]"
},
{
"name": "marwahaha",
"email": "[email protected]"
},
{
"name": "mj1856",
"email": "[email protected]"
},
{
"name": "timrwood",
"email": "[email protected]"
}
],
"name": "moment",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+https://github.com/moment/moment.git"
......
......@@ -10,7 +10,7 @@
"moment": {
"version": "2.22.1",
"resolved": "https://registry.npmjs.org/moment/-/moment-2.22.1.tgz",
"integrity": "sha1-Upoum/lz8lnJZD0jf9qE3jom6K0="
"integrity": "sha512-shJkRTSebXvsVqk56I+lkb2latjBs8I+pc2TzWc545y2iFnSjm7Wg0QMh+ZWcdSLQyGEau5jI8ocnmkyTgr9YQ=="
}
}
}
var fs = require('fs');
var http = require('http');
var browse = require("browse-directory");
var inventory_folder = 'sisyphus.inventory/';
var generated_folder = '/var/www/generated/'
var stored_data_keys = [];
var stored_data_values = [];
var stored_data = [];
var stored_last_retrieved = 0;
function recursive_retrieval( callback, _struct ) {
var i = stored_last_retrieved;
if ( i >= stored_data_keys.length ) {
populate( callback, _struct );
return;
}
var k = stored_data_keys[i];
stored_last_retrieved++;
if (
stored_data[k] &&
stored_data[k].src &&
!stored_data[k].data
) {
fs.readFile( stored_data[k].src, function(err, data) {
if (!err) {
var path = stored_data[k].src;
path = path.substring( path.indexOf('/')+2, path.length );
var txt = data.toString('utf8');
fs.readFile( generated_folder + path, function(err,data) {
if (!err) {
txt += '|' + path;
}