Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS]: Update unclear clean docs #475

Merged
merged 6 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dbbackup/management/commands/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def _get_backup_file(self, database=None, servername=None):
def _cleanup_old_backups(self, database=None, servername=None):
"""
Cleanup old backups, keeping the number of backups specified by
DBBACKUP_CLEANUP_KEEP and any backups that occur on first of the month.
DBBACKUP_CLEANUP_KEEP.
"""
self.storage.clean_old_backups(
encrypted=self.encrypt,
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ Default: ``10*1024*1024``
DBBACKUP_CLEANUP_KEEP and DBBACKUP_CLEANUP_KEEP_MEDIA
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

When issuing ``dbbackup`` and ``mediabackup`` with ``--clean`` option, the
number of old backup files that are looked for and removed.
When issuing ``dbbackup`` and ``mediabackup`` with ``--clean <amount>`` option,
the backup keeps this amount of most recent files. Older files are removed.

Default: ``10`` (backups)

Expand Down
Loading