merged backup manager python file
This commit is contained in:
parent
9c02b81cdd
commit
f848b8bafc
@ -30,7 +30,6 @@ def take_backups_dropbox():
|
|||||||
backup_to_dropbox()
|
backup_to_dropbox()
|
||||||
send_email(True, "Dropbox")
|
send_email(True, "Dropbox")
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
webnotes.errprint(e)
|
|
||||||
send_email(False, "Dropbox", e)
|
send_email(False, "Dropbox", e)
|
||||||
|
|
||||||
#backup to gdrive
|
#backup to gdrive
|
||||||
@ -56,8 +55,7 @@ def send_email(success, service_name, error_status=None):
|
|||||||
failed.</p>
|
failed.</p>
|
||||||
<p>Error message: %s</p>
|
<p>Error message: %s</p>
|
||||||
<p>Please contact your system manager for more information.</p>
|
<p>Please contact your system manager for more information.</p>
|
||||||
<p>Detailed Error Trace: %s</p>""" % \
|
""" % (service_name, error_status)
|
||||||
(service_name, error_status, getTraceback().replace("\n", "<br>"))
|
|
||||||
|
|
||||||
# email system managers
|
# email system managers
|
||||||
from webnotes.utils.email_lib import sendmail
|
from webnotes.utils.email_lib import sendmail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user