Adjust default backup quantity for iib.db file
parent
cadbe81c24
commit
6ef19df11f
|
|
@ -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 ----------------------------
|
||||||
|
|
|
||||||
|
|
@ -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')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue