I tried to make an automatic backup. The only thing which doesn’t work is the name of the backup. Here my config:
- id: '1584961424173'
alias: 'Service: make full backup'
description: Creates a full backup on Sunday
trigger:
- at: 03:00:00
platform: time
condition:
- condition: time
weekday:
- sun
action:
- data:
name: "Backup {{ now().strftime('%Y-%m-%d') }"
service: hassio.snapshot_full
The name of the backups is now “Backup {{ now().strftime('%Y-%m-%d') }”, so the variable isn’t resolved. How can I fix this? Tried to use “data_template” instead of “data” but this didn’t work.
After that I moved to docker based Home Assistant (Synology Diskstation), so I have no hassio anymore. Therefore I have now a different solution for backup.
alias: 'Service: make full backup'
description: Creates a full backup on Sunday
trigger:
- at: '03:00:00'
platform: time
condition:
- condition: time
weekday:
- sun
action:
- data_template:
name: 'Backup {{ now().strftime(''%Y-%m-%d'') }}'
service: hassio.snapshot_full
mode: single
You can only change the name of the backup inside the backup. This is shown when you see the list of backups in HA. This has unfortunately no impact on the filename of the backup.