def get(self): 
        name = '{}.{}'.format(str(next.utils.datetimeNow().strftime("%Y-%m-%d_%H:%M:%S")),
                              'tar.gz')
        location = make_mongodump(name)
        zip_file = file(location)
        return Response(zip_file,
                        mimetype='application/octet-stream',
                        headers={'Content-Disposition':
                                 'attachment;filename={}'.format(name)})
.. http:get:: /databaseBackup
dataset/ETHPy150Open nextml/NEXT/next/api/resources/database.py/DatabaseBackup.get