Added function to delete old temporary backup files when user downloads backup.
This commit is contained in:
parent
baa9be2c16
commit
97a08b58fb
1 changed files with 2 additions and 1 deletions
|
|
@ -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.""")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue