Adjust default backup quantity for iib.db file

pull/619/head
zanllp 2024-05-16 00:03:41 +08:00
parent cadbe81c24
commit 6ef19df11f
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ IIB_SECRET_KEY=
IIB_SERVER_LANG=auto IIB_SERVER_LANG=auto
# This configuration parameter specifies the maximum number of database file backups for the IIB . # This configuration parameter specifies the maximum number of database file backups for the IIB .
IIB_DB_FILE_BACKUP_MAX=16 IIB_DB_FILE_BACKUP_MAX=8
# ---------------------------- ACCESS_CONTROL ---------------------------- # ---------------------------- ACCESS_CONTROL ----------------------------

View File

@ -48,7 +48,7 @@ def backup_db_file(db_file_path):
if not os.path.exists(db_file_path): if not os.path.exists(db_file_path):
return return
max_backup_count = int(os.environ.get('IIB_DB_FILE_BACKUP_MAX', '16')) max_backup_count = int(os.environ.get('IIB_DB_FILE_BACKUP_MAX', '8'))
if max_backup_count < 1: if max_backup_count < 1:
return return
backup_folder = os.path.join(cwd,'iib_db_backup') backup_folder = os.path.join(cwd,'iib_db_backup')