The script for the database backups can be improved: https://github.com/bitwarden/server/blob/main/util/MsSql/backup-db.sh
The deletion section incorrectly states that files older than 30 days are deleted, when in fact the age for them to be deleted is 32 days.
The retention time should be configurable by setting a environment variable in a docker-compose.override.yml or a value in ./bwdata/config.yml.
Build Version
2025.12
Environment
Self-Hosted
Issue Tracking Info
The script for the database backups can be improved: https://github.com/bitwarden/server/blob/main/util/MsSql/backup-db.sh
The deletion section incorrectly states that files older than 30 days are deleted, when in fact the age for them to be deleted is 32 days.
The retention time should be configurable by setting a environment variable in a
docker-compose.override.ymlor a value in ./bwdata/config.yml.Build Version
2025.12
Environment
Self-Hosted
Issue Tracking Info