def backup_sqlite(filename):
    con = sqlite3.connect(DATABASE)
    with open(filename, 'w') as f:
        for line in con.iterdump():
            f.write("{0}\n".format(line))
Backup bakthat SQLite database to file.
dataset/ETHPy150Open tsileo/bakthat/bakthat/models.py/backup_sqlite