def get_backupdb(dbfile, stderr=sys.stderr,
create_version=(SCHEMA_v2, 2), just_create=False):
- # open or create the given backupdb file. The parent directory must
+ # Open or create the given backupdb file. The parent directory must
# exist.
try:
(sqlite3, db) = get_db(dbfile, stderr, create_version, updaters=UPDATERS,
def did_check_healthy(self, results):
self.bdb.did_check_file_healthy(self.filecap, results)
+
class DirectoryResult:
def __init__(self, bdb, dirhash, dircap, should_check):
self.bdb = bdb
def did_check_healthy(self, results):
self.bdb.did_check_directory_healthy(self.dircap, results)
+
class BackupDB_v2:
VERSION = 2
NO_CHECK_BEFORE = 1*MONTH
is not healthy, please upload the file and call r.did_upload(filecap)
when you're done.
- I use_timestamps=True (the default), I will compare ctime and mtime
+ If use_timestamps=True (the default), I will compare ctime and mtime
of the local file against an entry in my database, and consider the
file to be unchanged if ctime, mtime, and filesize are all the same
as the earlier version. If use_timestamps=False, I will not trust the