diff --git a/snapintime/__init__.py b/snapintime/__init__.py index f91902c..b67d5ee 100644 --- a/snapintime/__init__.py +++ b/snapintime/__init__.py @@ -1,7 +1,7 @@ __author__ = "Eric Mesa" -__version__ = "2.1.0" +__version__ = "2.1.1" __license__ = "GNU GPL v3.0" -__copyright__: str = "(c) 2014 - 2022 Eric Mesa" +__copyright__: str = "(c) 2014 - 2023 Eric Mesa" __email__: str = "ericsbinaryworld at gmail dot com" @@ -20,3 +20,4 @@ console_handler.setFormatter(RICH_FORMAT) log.addHandler(file_handler) log.addHandler(console_handler) +print(f"Using version {__version__}") diff --git a/snapintime/culling.py b/snapintime/culling.py index 87e16bf..90d5170 100644 --- a/snapintime/culling.py +++ b/snapintime/culling.py @@ -154,7 +154,7 @@ def cull_seven_days_ago(configuration: dict, remote: bool = False) -> list: return_list = [] for subvol in configuration.values(): location: str = "remote_subvol_dir" if remote else "backuplocation" - subvols_seven_days_ago = get_subvols_by_date(subvol.get(location), seven_days_ago_reg_ex) + subvols_seven_days_ago = get_subvols_by_date(subvol.get(location), seven_days_ago_reg_ex, True) log.debug(f"for {subvol.get(location)} {subvols_seven_days_ago=}") if remote: subvols_seven_days_ago = remove_protected(subvol, subvols_seven_days_ago)