Skip to content

Commit 8826eec

Browse files
chore: add env variable documentation for backup retention limit (#2976)
## Description Provide a concise summary of the changes made in this pull request - Added documentation for backup retention: new APPSMITH_BACKUP_ARCHIVE_LIMIT env var describing count-based cleanup, default limit of 4, timestamped backups, and pruning of oldest files after each run. ## Pull request type Check the appropriate box: - [ ] Review Fixes - [ ] Documentation Overhaul - [ ] Feature/Story - Link one or more Engineering Tickets * - [ ] A-Force - [ ] Error in documentation - [ ] Maintenance ## Documentation tickets Link to one or more documentation tickets: - ## Checklist From the below options, select the ones that are applicable: - [ ] Checked for Grammarly suggestions. - [ ] Adhered to the writing checklist. - [ ] Adhered to the media checklist. - [ ] Verified and updated cross-references or added redirect rules. - [ ] Tested the redirect rules on deploy preview. - [ ] Validated the modifications made to the content on the deploy preview. - [ ] Validated the CSS modifications on different screen sizes.
1 parent 1d820ea commit 8826eec

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

website/docs/getting-started/setup/environment-variables.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,14 @@ Specify a `5-value` cron expression to define the schedule for automatic backups
513513

514514
</dd>
515515

516+
##### `APPSMITH_BACKUP_ARCHIVE_LIMIT`
517+
518+
<dd>
519+
520+
Controls how many recent backup archives are retained. Backups use a count-based retention system (not time-based): each run creates a new timestamped file in `/appsmith-stacks/data/backup/`, and after every successful backup the cleanup process prunes the oldest files if the total exceeds this limit. The default is `4`, ensuring storage does not grow unbounded while keeping the most recent backup history. Backups are never overwritten; older files are simply deleted once the limit is surpassed.
521+
522+
</dd>
523+
516524
<!-- vale off -->
517525
<br/>
518526
<div className="tag-wrapper">

0 commit comments

Comments
 (0)