Merge pull request #131 from thsrite/main

This commit is contained in:
jxxghp 2023-08-16 10:21:51 +08:00 committed by GitHub
commit 3d1e4a2863
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,7 +152,8 @@ class AutoBackup(_PluginBase):
backup_path = bk_path / backup_file
backup_path.mkdir(parents=True)
# 把现有的相关文件进行copy备份
shutil.copy(f'{config_path}/category.yaml', backup_path)
if settings.LIBRARY_CATEGORY:
shutil.copy(f'{config_path}/category.yaml', backup_path)
shutil.copy(f'{config_path}/user.db', backup_path)
zip_file = str(backup_path) + '.zip'