浏览代码

Added function to delete old temporary backup files when user downloads backup.

version-14
Anand Doshi 14 年前
父节点
当前提交
97a08b58fb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      cgi-bin/webnotes/utils/backups.py

+ 2
- 1
cgi-bin/webnotes/utils/backups.py 查看文件

@@ -112,8 +112,9 @@ def get_backup():
""" """
#if verbose: print webnotes.conn.cur_db_name + " " + webnotes.defs.db_password #if verbose: print webnotes.conn.cur_db_name + " " + webnotes.defs.db_password
odb = BackupGenerator(webnotes.conn.cur_db_name, webnotes.conn.cur_db_name,\ odb = BackupGenerator(webnotes.conn.cur_db_name, webnotes.conn.cur_db_name,\
webnotes.defs.db_password)
webnotes.defs.db_password)
odb.get_backup() odb.get_backup()
delete_temp_backups()
webnotes.msgprint("""A download link to your backup will be emailed \ webnotes.msgprint("""A download link to your backup will be emailed \
to you shortly.""") to you shortly.""")




正在加载...
取消
保存