diff --git a/dbbackup/management/commands/_base.py b/dbbackup/management/commands/_base.py index 9149742..f5c956e 100644 --- a/dbbackup/management/commands/_base.py +++ b/dbbackup/management/commands/_base.py @@ -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, diff --git a/docs/configuration.rst b/docs/configuration.rst index 598b72f..0c51c33 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -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 `` option, +the backup keeps this amount of most recent files. Older files are removed. Default: ``10`` (backups)