How come my backup is not starting?

Can someone help me out, script works when initiated manually…

configuration have includes for both automation.yaml and shell_commands.yaml

automation.yaml
# backup configuration files

- alias: Backup HA Configuration Files
  trigger:
    platform: time
    after: "03:00:00"
  action:
    - service: shell_command.backup_ha_configuration_files

shell_commands.yaml
backup_ha_configuration_files: /home/homeassistant/.homeassistant/scripts/backup_ha_configuration_files.sh

Is the script executable?

What are the first 2 lines of the script?

Why not just run this on a cron job?

I agree this should be a cron task instead. I don’t see why everyone wants to use HA to do things that can easily (and should) be done by other means.

Anyways, my guess is that it is a user or permission issue. If you logged in a tested the script as MyUser and Home-Assistant runs under hass then you are likely to run into problems.