mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-15 08:21:28 +03:00
backups now occur in appdata/backups folder
This commit is contained in:
@@ -398,7 +398,8 @@ async function installDependencies() {
|
|||||||
|
|
||||||
async function backupServerLite() {
|
async function backupServerLite() {
|
||||||
return new Promise(async resolve => {
|
return new Promise(async resolve => {
|
||||||
let output_path = `backup-${Date.now()}.zip`;
|
fs.ensureDirSync(path.join(__dirname, 'appdata', 'backups'));
|
||||||
|
let output_path = path.join('appdata', 'backups', `backup-${Date.now()}.zip`);
|
||||||
logger.info(`Backing up your non-video/audio files to ${output_path}. This may take up to a few seconds/minutes.`);
|
logger.info(`Backing up your non-video/audio files to ${output_path}. This may take up to a few seconds/minutes.`);
|
||||||
let output = fs.createWriteStream(path.join(__dirname, output_path));
|
let output = fs.createWriteStream(path.join(__dirname, output_path));
|
||||||
var archive = archiver('zip', {
|
var archive = archiver('zip', {
|
||||||
|
|||||||
Reference in New Issue
Block a user