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