Full backup excluding a folder

I currently use the following automation for backups

alias: 'HA Backup (Tue, Fri, Sun)'
description: ''
  - platform: time
    at: '03:00:00'
  - condition: time
      - tue
      - fri
      - sun
  - service: hassio.snapshot_full
      name: 'Backup_{{ now().strftime(''%Y-%m-%d'') }}'
  - service: recorder.purge
      keep_days: 2
mode: single

This works well, but ideally I would like to move my Music library on to this Pi, as it has an M.2 drive, but I would want to exclude the Media folder from the full backup. The backups are transferred over to my NAS automatically via Samba.

I know there is a partial backup, but I could not see a way to select everything other than a single folder. Ideally I don’t want to have to remember to edit the backup automation every time I add a new add on.

I wondered if I could create the lists using a template, but I have not go my head fully around those yet.

1 Like

Exact same question

Same here. Have a script that makes picures for a timelapse for about 1 year. Make a backup to other harddrive of the pictures but want to exclude this picture folder from the backup. But must be in the www folder to make the picture script work.