Creating regular HA backups with storage on ext. storage

Hello,

how to make a regular backup on HA (e.g. once a month) and save the backup e.g. on onedrive or google drive?

Thanks.

I use a connected NAS and Samba. Here is the code to do weekly backups. You’ll have to install and configure Samba to write to a network drive. Not exactly what you asked for, but a viable solution in the interim.

#############################################################
##            Nightly Hass.io Backup                       
##            [Validated 12/22/2018 - v 84.5]            
#############################################################
- id: hassio_backup
  alias: Hassio Backup
  initial_state: true
  mode: restart
  trigger:
  - platform: time
    at: '02:00:00'
  condition:
  - condition: time
    weekday:
      - sun
#      - wed
  - condition: state
    entity_id: input_boolean.hass_io_autobackup
    state: 'on'
  action:
  - service: hassio.backup_full
    data_template:
      name: Sunday Backup {{ now().strftime('%Y-%m-%d') }}
#

I am using Duplicati which has loads of options and does incremental backups