**Fixes:** - Overwriting MongoDB env data on appsmithctl restore. - appsmithctl backup does not include the MongoDB env vars. **Features:** - appsmithctl backup now does not stop backend and rts service during backup operation. _Note:- It will be the responsibility of the Admin to make sure that a manual backup is really a desired snapshot when done via the appsmithctl backup util command To ensure this, Admins may require to stop the backend and rts processes in the container before a manual backup( We will need to document this) [ In future we can add an appsmithctl cmd to put appsmith to maintenance mode with a maintenance page ]_ Fixes # [21603](https://github.com/appsmithorg/appsmith/issues/21603)
28 lines
765 B
JavaScript
28 lines
765 B
JavaScript
|
|
const BACKUP_PATH = "/appsmith-stacks/data/backup"
|
|
|
|
const RESTORE_PATH = "/appsmith-stacks/data/restore"
|
|
|
|
const DUMP_FILE_NAME = "appsmith-data.archive"
|
|
|
|
const APPSMITHCTL_LOG_PATH = "/appsmith-stacks/logs/appsmithctl"
|
|
|
|
const LAST_ERROR_MAIL_TS = "/appsmith-stacks/data/backup/last-error-mail-ts"
|
|
|
|
const MIN_REQUIRED_DISK_SPACE_IN_BYTES = 2147483648 // 2GB
|
|
|
|
const DURATION_BETWEEN_BACKUP_ERROR_MAILS_IN_MILLI_SEC = 21600000 // 6 hrs
|
|
|
|
const APPSMITH_DEFAULT_BACKUP_ARCHIVE_LIMIT = 4 // 4 backup archives
|
|
|
|
module.exports = {
|
|
BACKUP_PATH,
|
|
RESTORE_PATH,
|
|
DUMP_FILE_NAME,
|
|
LAST_ERROR_MAIL_TS,
|
|
APPSMITHCTL_LOG_PATH,
|
|
MIN_REQUIRED_DISK_SPACE_IN_BYTES,
|
|
DURATION_BETWEEN_BACKUP_ERROR_MAILS_IN_MILLI_SEC,
|
|
APPSMITH_DEFAULT_BACKUP_ARCHIVE_LIMIT
|
|
}
|