12 lines
273 B
Python
12 lines
273 B
Python
import sys, sqlite3
|
|
|
|
def progress(status, remaining, total):
|
|
print(f'Copied {total-remaining} of {total} pages...')
|
|
|
|
con = sqlite3.connect(sys.argv[2])
|
|
bck = sqlite3.connect(sys.argv[1])
|
|
with bck:
|
|
con.backup(bck, pages=1, progress=progress)
|
|
bck.close()
|
|
con.close()
|