diff --git a/unifi_protect_backup/cli.py b/unifi_protect_backup/cli.py index 3380de9..fbdab17 100644 --- a/unifi_protect_backup/cli.py +++ b/unifi_protect_backup/cli.py @@ -47,8 +47,8 @@ def _parse_detection_types(ctx, param, value): default='7d', show_default=True, envvar='RCLONE_RETENTION', - help="How long should event clips be backed up for. Format as per the `--max-age` argument of " - "`rclone` (https://rclone.org/filtering/#max-age-don-t-transfer-any-file-older-than-this)", + help="How long should event clips be backed up for. Format as per the `rclone1 time option format " + "(https://rclone.org/docs/#time-option)", ) @click.option( '--rclone-args', diff --git a/unifi_protect_backup/utils.py b/unifi_protect_backup/utils.py index d329953..1eafba4 100644 --- a/unifi_protect_backup/utils.py +++ b/unifi_protect_backup/utils.py @@ -339,7 +339,7 @@ def parse_rclone_retention(retention: str) -> relativedelta: days=matches.get("d", 0), weeks=matches.get("w", 0), months=matches.get("M", 0), - years=matches.get("Y", 0), + years=matches.get("y", 0), )