mirror of
https://github.com/ep1cman/unifi-protect-backup.git
synced 2025-12-05 23:53:30 +00:00
Fixed time period parsing
Also updated link to rclone docs to be more direct to the format docs
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user