摘要: import datetimeimport osimport subprocess# 数据库备份目录BACKUP_DIR = '/path/to/backup'# 备份文件保留周期(天)RETENTION_PERIOD = 7# 备份数据库def backup_database(): current 阅读全文
posted @ 2024-11-23 10:38 武装小灰灰 阅读(4) 评论(0) 推荐(0) 编辑