Skip to content

The backup-db.sh script should be easily configurable #7581

Description

@jmteufel

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

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions