Backup automation in samba share

Good morning,
I just configured a samba share on Home Assistant OS and I wanted to understand, how can I create an automation that makes a backup on Monday, Wednesday and Thursday with the name “backup_date_hour.tar”?

I would like to remove the SAMBA Backup addon to reduce the overhead of HA OS

Call service backup

In the service you can pick the Samba location

alias: Daily Backup
description: ""
trigger:
  - platform: time
    at: "03:00:00"
condition: []
action:
  - service: hassio.backup_full
    data:
      compressed: true
mode: single

what if I want to activate the function only on a certain day of the week? I would like you to back me up on Monday, Wednesday and Friday.
What if I want to put an exact location where to backup?
That’s why I was asking

Add a time condition for those days.

condition:
  condition: time
  weekday:
    - mon
    - wed
    - fri
alias: Daily Backup
description: ""
trigger:
  - platform: time
    at: "03:00:00"
condition:
  - condition: time
    weekday:
      - mon
      - wed
      - fri
action:
  - service: hassio.backup_full
    data:
      compressed: true
mode: single

Thanks for automation!

1 Like

What do I do if I want to give a specific name to the backup file? (the file must have the name: Samba_Backup_2023_10_03_10_00, i.e. Samba_Backup_Year_Month_Day_Hour_Minute)

I couldn’t get call service HA Full Backup to accept a name change.

ok, thanks