Hass.io Add-on: Upload hassio snapshots to Dropbox

Good update! But you need to fill in a number for keep_last, otherwise the plugin won’t start (without giving any error in the log). Confused me for a bit, but works great!

How about my previous suggestion/remark? “is it possible to show the date of the latest (successful) uploaded backup in Hassio frontend?”

I think displaying information in the Home Assistant front end is beyond the scope of this (or any) add-on. I can’t think of a way to make this info readily available to a front-end sensor via the add-on off the top of my head, any suggestions?

As for the keep_last parameter, I’ll change it to optional in a bug fix release.

1 Like

BUmp, any ideas?

I get the following error in the add on log
[Info] Received message with command upload
[Info] Uploading all .tar files in /backup (skipping those already in Dropbox)
Error loading data from /etc/uploader.conf…
It is recommended to run ./dropbox_uploader.sh unlink

Sounds like a problem either with writing your Oauth token or with reading it. I’d uninstall and reinstall and hope that fixes it. If it persists, I’d guess it’s a problem with the token configuration in your instance of the add-on or something.

I did reinstall it but to no avail:
Below my configuration (token is changed of course)

{
“oauth_access_token”: “AAA-hzgAQASDSADSADB-8UKiasdfYlB3UW6-a5zsdaffasdJCG6Lx1V-lNKb-FnTR>”,
“output”: “/Home-Assistant-John/”,
“keep_last”: 2
}

Do you spot any mistakes?

P.s. for some reason i had to delete the < sign before AAA in order for it to show the token.

Delete the trailing > (as well as the leading <). The entire string is supposed to be replaced with your token, not just the part in between the < and >. This is a documentation convention that I’m used to, sorry if it was not made clear.

2 Likes

This is hopefully fixed with 1.1.2, along with a bug that I ran into with older snaphsots that apparently did not have timezone information when created.

You should now be able to omit the keep_last option entirely.

No problem, I am already very happy with the addon as is! I will look into adding a timestamp to the frontend!

Thx it worked

This is working for me too - thank you! There’s a bit of relief now not having to remember to Snapshot and manually save the .tar file to my NAS. Out of sight, out of mind!

+1 on Google drive :-):grinning:

1 Like

I’m working on a Google Drive add on. Authentication has been the main hurdle with the Oauth flow, but hopefully I’m getting close. You can preview it here and even download and test it out if you want. Haven’t had a chance to test it within hassio as I’m traveling. Note that the usage section in the documentation isn’t updated from dropbox-sync yet.

If I want to keep only x latest snapshots, … how I need to configure?

I believe you just need to add:

"keep_last": X

To your add-on configuration. (where X is the number of days)

1 Like

“keep_last”: X
or
“keep_last”: “x”

?

I wish I could exclude some files (the log files) since are too big and fill up my dropbox space (not really interested in backing up the log)

^^^This one

What? Are you seeing log files uploaded to Dropbox when running the add-on? Only .tar files located in the /backup directory of hassio should be uploaded, as the docs explain.

I mean my backup file is around 1GB, I guess because my db and log files are big. I wish to make backup of everything besides those 2 files

Ah, I see. Yeah, partial snapshots in hassio don’t have that level of control. Would be nice.

keep_last seems that not works.