Skip to content

Commit

Permalink
[DOCS]: Update unclear clean docs (#475)
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Bakhit <archiethemonger@gmail.com>
Co-authored-by: Archmonger <16909269+Archmonger@users.noreply.github.com>
  • Loading branch information
3 people authored Jan 29, 2024
1 parent a8deb81 commit 1b2ead2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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

0 comments on commit 1b2ead2

Please sign in to comment.