Skip to content

Commit

Permalink
Merge pull request #45 from djotaku/bugfix
Browse files Browse the repository at this point in the history
Bugfix for remote weekly culling
  • Loading branch information
djotaku authored Feb 20, 2023
2 parents e2fb001 + b410b22 commit 67df1fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions snapintime/__init__.py
Original file line number Diff line number Diff line change
@@ -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"


Expand All @@ -20,3 +20,4 @@
console_handler.setFormatter(RICH_FORMAT)
log.addHandler(file_handler)
log.addHandler(console_handler)
print(f"Using version {__version__}")
2 changes: 1 addition & 1 deletion snapintime/culling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 67df1fc

Please sign in to comment.