def __init__(self, src_path, force_name=None):
        """
        :param src_path: Path2() instance of the source directory
        :param force_name: Force this name for the backup
        """
        self.abs_src_root = Path2(src_path).resolve()
        log.debug(" * abs_src_root: '%s'", self.abs_src_root)

        if not self.abs_src_root.is_dir():
            raise OSError("Source path '%s' doesn't exists!" % self.abs_src_root)

        self.src_prefix_path = self.abs_src_root.parent
        log.debug(" * src_prefix_path: '%s'", self.src_prefix_path)

        self.backup_name = self.abs_src_root.name
        if force_name is not None:
            self.backup_name = force_name
        elif not self.backup_name:
            print("\nError get name for this backup!", file=sys.stderr)
            print("\nPlease use '--name' for force a backup name!\n", file=sys.stderr)
            sys.exit(-1)
        log.debug(" * backup_name: '%s'", self.backup_name)

        self.backup_datetime = datetime.datetime.now()
        self.time_string = self.backup_datetime.strftime(phlb_config.sub_dir_formatter)
        log.debug(" * time_string: %r", self.time_string)

        self.abs_dst_root = Path2(phlb_config.backup_path, self.backup_name, self.time_string)
        log.debug(" * abs_dst_root: '%s'", self.abs_dst_root)

        self.log_filepath = Path2(phlb_config.backup_path, self.backup_name, self.time_string + ".log")
        self.summary_filepath = Path2(phlb_config.backup_path, self.backup_name, self.time_string + " summary.txt")

        # set in set_src_filepath():
        self.abs_src_filepath = None
        self.sub_filepath = None
        self.sub_path = None
        self.filename = None
        self.abs_dst_path = None
        self.abs_dst_filepath = None
        self.abs_dst_hash_filepath = None
def __init__ ( self , src_path , force_name = None ) : self . abs_src_root = Path2 ( src_path ) . resolve ( ) log . debug ( " * abs_src_root: '%s'" , self . abs_src_root ) if not self . abs_src_root . is_dir ( ) : raise OSError ( "Source path '%s' doesn't exists!" % self . abs_src_root ) self . src_prefix_path = self . abs_src_root . parent log . debug ( " * src_prefix_path: '%s'" , self . src_prefix_path ) self . backup_name = self . abs_src_root . name if force_name is not None : self . backup_name = force_name elif not self . backup_name : print ( "\nError get name for this backup!" , file = sys . stderr ) print ( "\nPlease use '--name' for force a backup name!\n" , file = sys . stderr ) sys . exit ( - 1 ) log . debug ( " * backup_name: '%s'" , self . backup_name ) self . backup_datetime = datetime . datetime . now ( ) self . time_string = self . backup_datetime . strftime ( phlb_config . sub_dir_formatter ) log . debug ( " * time_string: %r" , self . time_string ) self . abs_dst_root = Path2 ( phlb_config . backup_path , self . backup_name , self . time_string ) log . debug ( " * abs_dst_root: '%s'" , self . abs_dst_root ) self . log_filepath = Path2 ( phlb_config . backup_path , self . backup_name , self . time_string + ".log" ) self . summary_filepath = Path2 ( phlb_config . backup_path , self . backup_name , self . time_string + " summary.txt" ) self . abs_src_filepath = None self . sub_filepath = None self . sub_path = None self . filename = None self . abs_dst_path = None self . abs_dst_filepath = None self . abs_dst_hash_filepath = None
:param src_path: Path2() instance of the source directory
        :param force_name: Force this name for the backup