PromucFlow_constructor/deploy/docker/utils/bin/constants.js
Sumesh Pradhan edbfef7d51
Auto-backup and cleanup with appsmithctl (#15203)
- Auto-cleanup of backup files using env variable APPSMITH_BACKUP_ARCHIVE_LIMIT (default value is 4) after every backup.
- Updated docker file to include watchtower hook scripts.
- Error mail interval to 6hrs.
2022-07-28 17:45:28 +05:30

25 lines
650 B
JavaScript

const BACKUP_PATH = "/appsmith-stacks/data/backup"
const RESTORE_PATH = "/appsmith-stacks/data/restore"
const DUMP_FILE_NAME = "appsmith-data.archive"
const BACKUP_ERROR_LOG_PATH = "/appsmith-stacks/logs/backup"
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
module.exports = {
BACKUP_PATH,
RESTORE_PATH,
DUMP_FILE_NAME,
LAST_ERROR_MAIL_TS,
BACKUP_ERROR_LOG_PATH,
MIN_REQUIRED_DISK_SPACE_IN_BYTES,
DURATION_BETWEEN_BACKUP_ERROR_MAILS_IN_MILLI_SEC,
}