This Hass.io add-on provides a simple way to upload your snapshots to Dropbox.
Add this repository URL in Hass.io:
https://github.com/d0ugal/hassio-dropbox-upload
You will need to create a Dropbox app
- Choose
Dropbox API
- Either type of Dropbox app should work (Full or App directory)
- Give it a unique name, this can be anything
- Click
Generate
under "Generated access token" and copy the token.
After that, the config is simple. You just need to specify the access token and a directory name.
{
"access_token": "ACCESS TOKEN",
"dropbox_dir": "/hass-snapshots/"
"keep": 10,
"mins_between_backups": 30
}
Here is the automation I use to create a snapshot and upload it to Dropbox.
- alias: Backup Nightly
trigger:
platform: time
at: '02:00:00'
action:
- service: hassio.snapshot_full
data_template:
name: Automated Backup {{ now().strftime('%Y-%m-%d') }}
This project is young, and very light. I am interested in adding some features - so long as it remains simple and easy to use. Please let me know of your ideas and feedback!