@frappe.whitelist()
def take_backup():
 enqueue(u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup_to_dropbox', queue=u'long')
 frappe.msgprint(_(u'Queued for backup. It may take a few minutes to an hour.'))

@ frappe . whitelist ( ) def take_backup ( ) : enqueue ( u'frappe.integrations.doctype.dropbox_settings.dropbox_settings.take_backup_to_dropbox' , queue = u'long' ) frappe . msgprint ( _ ( u'Queued for backup. It may take a few minutes to an hour.' ) )
enqueue longjob for taking backup to dropbox .