System - Make weekly Hassio backup

View All Rules

Makes a backup of hassio every Sunday at 3:00 am so that I can store it on my NAS.

alias: System - Make weekly Hassio backup
initial_state: true
trigger:
  - platform: time
    at: '02:00:00'
action:
  - service: hassio.snapshot_full
    data_template:
      name: Backup {{ now().strftime('%Y-%m-%d') }} running HA version {{ states('sensor.current_version') }}
  - service: script.notify_engine
    data_template:
      channel: "tweets"
      value1: "Backup {{ now().strftime('%Y-%m-%d') }} running HA version {{ states('sensor.current_version') }}"
      hashtag: '#HASS #Backup'

© 2020. Some rights reserved. The contents of this site is released under a Creative Commons Attribution-Share Alike license.