mirror of
https://github.com/caprover/caprover
synced 2025-10-30 10:07:01 +00:00
Merge pull request #2336 from R3D347HR4Y/excludelogsfrombackups
FIX - Deletes the shared-logs from the copied /captain/data folder upon a backup of the config
This commit is contained in:
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@@ -6,7 +6,7 @@
|
||||
"**/built": true,
|
||||
"**/coverge": true
|
||||
},
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSave": false,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": "explicit",
|
||||
"source.fixAll.eslint": "explicit",
|
||||
@@ -19,7 +19,7 @@
|
||||
"editor.defaultFormatter": "foxundermoon.shell-format"
|
||||
},
|
||||
"[plaintext]": {
|
||||
"editor.formatOnSave": false,
|
||||
"editor.formatOnSave": true,
|
||||
"editor.defaultFormatter": null
|
||||
},
|
||||
"files.associations": {
|
||||
|
||||
@@ -658,7 +658,7 @@ export default class BackupManager {
|
||||
// https://github.com/jprichardson/node-fs-extra/issues/638
|
||||
return new Promise(function (resolve, reject) {
|
||||
const child = exec(
|
||||
`mkdir -p {dest} && cp -rp ${CaptainConstants.captainDataDirectory} ${dest}`
|
||||
`mkdir -p ${dest} && cp -rp ${CaptainConstants.captainDataDirectory} ${dest} && mkdir -p ${dest}/shared-logs && rm -rf ${dest}/shared-logs`
|
||||
)
|
||||
child.addListener('error', reject)
|
||||
child.addListener('exit', resolve)
|
||||
|
||||
Reference in New Issue
Block a user