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

Large backups due to big .git folder #69

Closed davidw3591 closed 2 years ago

davidw3591 commented 2 years ago

Hi,

My partial backups are quite large due to a large git pack file (.git\objects\pack\pack-xxxxxxxxx.pack 230MB). Would it be possible to exclude this somehow when running a partial backup?

My config:

automation:
  - alias: System - Backup - Config only every 2 hours
    trigger:
      # Perform backup every x hours
      platform: time_pattern
      hours: "/2"
    action:
      # Only perform a partial backup to save storage
      service: auto_backup.backup_partial
      data:
        name: "Config backup: {{ now().strftime('%H:%M %d/%m/%Y') }}"
        folders:
          - homeassistant
          # - share
          # - ssl
        keep_days: 3
jcwillox commented 2 years ago

Nope, the backups are performed by Home Assistant itself and they only allow you to exclude a few predefined top-level "folders" such as media, config, etc. So Auto Backup, unfortunately, has no control over this.