jcwillox / hass-auto-backup

🗃️ Improved Backup Service for Home Assistant that can Automatically Remove Backups and Supports Generational Backup Schemes.
https://jcwillox.github.io/hass-auto-backup
MIT License
368 stars 27 forks source link

Backups are not getting purged #55

Closed Alex-joomla closed 2 years ago

Alex-joomla commented 2 years ago

Hi guys. I guess i have a configuration problem with this component. Automation looks like this:

- alias: Perform Daily Backup
  trigger:
    platform: time
    at: "02:30:00"
  condition:
    condition: time # Perform backup every day except Mondays.
    weekday:
      - tue
      - wed
      - thu
      - fri
      - sat
      - sun
  action:
    service: auto_backup.backup_full
    data:
      name: "DailyBackup: {{ now().strftime('%A, %B %-d, %Y') }}"
      keep_days: 7

But Backups are not getting purged. (i have a purge action once a day too) Read in other issues, that this can be due to a timeout, since the monitored Backup counter is 0 and one Backup lasts about 3 hours. Activated the logger this way but getting way too less messages

logger:
  default: warning
  logs:
    custom_components.auto_backup: debug

This is the output in logs: Bildschirmfoto 2022-04-28 um 16 23 12

jcwillox commented 2 years ago

Sorry for the delay, are you saying that one backup takes 3 hours to create? If the backup takes longer than 20 mins (configurable) to create, Auto Backup assumes that it failed and won't track it for deletion (this is a limitation of HA).

The logs from Home Assistant, i.e. the home-assistant.log file will provide the actual log messages from Auto Backup.

Alex-joomla commented 2 years ago

No Problem at all, thank you for your kind answer. It is indeed a timeout problem. Had configured the max. time to three hours and it seems that this have solved the problem.