Code:
// Daily Backup
// Trigger: JDownloader Started
// External Program required: 7-zip (Console Version)
var sevenzip = "/apps/7z/7za"; // <- Path to 7-zip binary
var backupFolder = JD_HOME + "/JD Backup/"; // <- Folder to save the backup files (Will be created in JDownloader install location by default)
(function() {
var date = new Date().toISOString().match(/.{10}/);
var backupPath = getPath(backupFolder + date + ".7z");
if (backupPath.isFile()) return;
callAsync(null, sevenzip, "a", backupPath, JD_HOME + "/cfg");
})();