This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Influx = require('influx'); | |
var QL = require('influx-ql'); //influx query builder | |
var logger = require('../config/logger.js'); //winston logger | |
var configDB = require('../config/database.js'); //database constants configuration file | |
var cmd = require('node-cmd'); //to execute commands | |
var backup_path = __dirname + configDB.influx_backup; //path to temporary folder used to store backups files | |
// UTILS FUNCTIONS | |
function dateToNano(date){ |