def __init__(self, path_helper, summary):
self.start_time = default_timer()<EOL>self.path_helper = path_helper<EOL>self.summary = summary<EOL>self.duration = <NUM_LIT:0><EOL>self.total_file_link_count = <NUM_LIT:0><EOL>self.total_stined_bytes = <NUM_LIT:0><EOL>self.total_new_file_count = <NUM_LIT:0><EOL>self.total_new_bytes = <NUM_LIT:0><EOL>self.total_errored_items = <NUM_LIT:0><EOL>self.total_fast_backup = <NUM_LIT:0><EOL>old_backups = BackupRun.objects.filter(name=self.path_helper.backup_name)<EOL>self.summary("<STR_LIT>" % (self.path_helper.backup_name, old_backups.count()))<EOL>old_backups = old_backups.filter(completed=True)<EOL>completed_count = old_backups.count()<EOL>self.summary("<STR_LIT>" % completed_count)<EOL>self.latest_backup = None<EOL>self.latest_mtime_ns = None<EOL>try:<EOL><INDENT>self.latest_backup = old_backups.latest()<EOL><DEDENT>except BackupRun.DoesNotExist:<EOL><INDENT>self.summary("<STR_LIT>" % self.path_helper.backup_name)<EOL><DEDENT>else:<EOL><INDENT>latest_backup_datetime = self.latest_backup.backup_datetime<EOL>self.summary("<STR_LIT>", dt2naturaltimesince(latest_backup_datetime))<EOL>backup_entries = BackupEntry.objects.filter(backup_run=self.latest_backup)<EOL>try:<EOL><INDENT>latest_entry = backup_entries.latest()<EOL><DEDENT>except BackupEntry.DoesNotExist:<EOL><INDENT>log.warn("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.latest_mtime_ns = latest_entry.file_mtime_ns<EOL>self.summary("<STR_LIT>" % ns2naturaltimesince(self.latest_mtime_ns))<EOL><DEDENT><DEDENT>self.summary("<STR_LIT>" % self.path_helper.abs_dst_root)<EOL>self.path_helper.abs_dst_root.makedirs(  <EOL>mode=phlb_config.default_new_path_mode, exist_ok=True<EOL>)<EOL>if not self.path_helper.abs_dst_root.is_dir():<EOL><INDENT>raise NotADirectoryError("<STR_LIT>" % self.path_helper.abs_dst_root)<EOL><DEDENT>self.backup_run = BackupRun.objects.create(<EOL>name=self.path_helper.backup_name, backup_datetime=self.path_helper.backup_datetime, completed=False<EOL>)<EOL>log.debug("<STR_LIT>" % self.backup_run)<EOL>
:param src_path: Path2() instance of the source directory
:param force_name: Force this name for the backup