Skip to content
LogScale Self-Hosted
This is an archived version of the documentation downloaded from LogScale Documentation Archives. Up to date documentation, and documentation for later versions, is available on LogScale Documentation

## `DELETE_BACKUP_AFTER_MILLIS`

Option | `DELETE_BACKUP_AFTER_MILLIS`
Description | Configures when data files backup must be deleted
Default | `604,800,000 ms`

The `DELETE_BACKUP_AFTER_MILLIS` variable controls how long before LogScale deletes the data from the backup. See `BACKUP_DIR` above for more information and an example.

When deleting the data, the following conditions must be true for the data to be removed:

- `MS_BEFORE_DATASPACE_CONTENT_DELETION` must be less than `DAYS_BEFORE_TOMBSTONE_DELETION` - 1 day. For example, if `DAYS_BEFORE_TOMBSTONE_DELETION` is set to 14, then `MS_BEFORE_DATASPACE_CONTENT_DELETION` must be 1123200000 or less (`13*24*60*60*1000`).

- `DELETE_BACKUP_AFTER_MILLIS` must be less than `MS_BEFORE_DATASPACE_CONTENT_DELETION` - 1 day.

The `DELETE_BACKUP_AFTER_MILLIS` environment variable that decides the restorability time, because it indicates the time in which files will start to be deleted and data will not be recoverable after.

#### Enter search term