From 6640d6e9f7188ce5b424f9cf8f8ffb4aabc5a659 Mon Sep 17 00:00:00 2001 From: expressgy Date: Thu, 11 May 2023 18:19:32 +0800 Subject: [PATCH] s --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index fcf81e5..b5822e9 100644 --- a/server.js +++ b/server.js @@ -51,7 +51,7 @@ function back(){ return new Promise(rec => { const cout = os.platform() == 'win32' ? '-r' : '>' , filename = `back/BACKUP_${ database }_${ moment().format("YYYY_MM_DD_HH_mm_ss") }.sql` - // console.log(cout, filename) + console.log(cout, filename) const backProcess = spawn('mysqldump',['-h' + SERVERHOST, database, cout, filename]); backProcess.stdout.on('data', data => console.log('Data : ', out(data))) backProcess.stderr.on('data', data => console.log('Error: ', out(data)))