aaden-cli 1.1.116 → 1.1.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -4
- package/index.js +7 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57463,7 +57463,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.19.2","description":"P
|
|
|
57463
57463
|
/***/ ((module) => {
|
|
57464
57464
|
|
|
57465
57465
|
"use strict";
|
|
57466
|
-
module.exports = {"i8":"1.1.
|
|
57466
|
+
module.exports = {"i8":"1.1.116"};
|
|
57467
57467
|
|
|
57468
57468
|
/***/ }),
|
|
57469
57469
|
|
|
@@ -57967,10 +57967,14 @@ async function backup (full = true) {
|
|
|
57967
57967
|
'cd ' + backupHome,
|
|
57968
57968
|
'sudo rsync -av --delete /var/www/html/ .'
|
|
57969
57969
|
]
|
|
57970
|
-
|
|
57970
|
+
|
|
57971
57971
|
cli.executeInShell(command, program.debug)
|
|
57972
|
-
|
|
57973
|
-
|
|
57972
|
+
setTimeout(() => {
|
|
57973
|
+
const homedir = __nccwpck_require__(12087).homedir()
|
|
57974
|
+
const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
|
|
57975
|
+
uploadFile(fileName)
|
|
57976
|
+
}, 8000)
|
|
57977
|
+
|
|
57974
57978
|
|
|
57975
57979
|
}
|
|
57976
57980
|
|
package/index.js
CHANGED
|
@@ -284,10 +284,14 @@ async function backup (full = true) {
|
|
|
284
284
|
'cd ' + backupHome,
|
|
285
285
|
'sudo rsync -av --delete /var/www/html/ .'
|
|
286
286
|
]
|
|
287
|
-
|
|
287
|
+
|
|
288
288
|
cli.executeInShell(command, program.debug)
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
setTimeout(() => {
|
|
290
|
+
const homedir = require('os').homedir()
|
|
291
|
+
const fileName = [homedir, 'backups', timeStamp, `${timeStamp}@cli.sql`].join('/')
|
|
292
|
+
uploadFile(fileName)
|
|
293
|
+
}, 8000)
|
|
294
|
+
|
|
291
295
|
|
|
292
296
|
}
|
|
293
297
|
|