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

Thanks for this add-on.
My log shows the add-on stuck at;

Listening for messages via stdin service call...

  1. Should the auth token be bookended with <> : answered my own question with a search here, thanks!
  2. Do I need to restart Hass for the add-on to start doing something? I’ve done a snapshot and it hasn’t been uploaded anywhere…
    Thanks

Hey, thanks!

This is by design, and you should read the documentation. Particularly the section labeled “Usage”. Unless you’ve followed those directions and you’re still stuck, in which case I’m happy to help more.

D’oh!! Such an eeejit. Sorry I missed that…
Upload now in progress…where’s the embarassed emoji?!
The only query I have now is is there a setting to ONLY upload the most recent snapshot? No big deal if not.

Unfortunately no, sorry. I’m working on a more full featured snapshot manager in my spare time that should make this possible though.

1 Like

Hi @danielwelch

I’ve opened an issue on Githib because I get this error

*** FAILED An error occurred requesting /chunked_upload

Log is:

[Info] Files will be uploaded to: /hass_b3_backup/
[Info] Saving OAUTH_ACCESS_TOKEN to /etc/uploader.conf
[Info] Listening for messages via stdin service call...
{"command": "upload"}
[Info] Received message with command upload
[Info] Uploading all .tar files in /backup (skipping those already in Dropbox)
 > Uploading "/backup/14c13bf3.tar" to "/hass_b3_backup/yyyyyyyyy.tar" by 6 chunks *** FAILED
An error occurred requesting /chunked_upload

My config is:

{
  "oauth_access_token": "xxxxxxxx",         # app_key in Dropbox developer page
  "output": "/hass_b3_backup/",                 # folder created under Application in Dropbox
  "keep_last": 7
}

Is my config correct?

Where should I check to solve this problem?

Thanks

I get this if I don’t have enough free space in dropbox. Check that.

Thanks @teachingbirds
I have more than 2GB free in my dropbox account, I’ve created a new one just for Hassio

What about the folder name?

I’ve created the folder hass_b3_backup under Applications and in the output field in the config addon is "/hass_b3_backup/"

Is it correct?

Hi - Wanted to say thanks for the add-on. Before the whole update debacle happened 3 days ago - I was in the process of installing this add-on, and I didn’t quite finish. It would run when I called the service, however it assumed my folder name was the FILE name I wanted to save it as. I would use “/hassio/snapshots/” (and with testing, several variations of that) - it would just create snapshots in hassio folder, and then try to create 9 more, and obviously failing. (9 more attempts because I have 10 snapshots in my backup folder). Normally I would assume thats because of a trailing slash issue in my folder syntax, however I couldn’t really test that because the addon wouldn’t update the folder name no matter how many times I saved config and restarted addon.

However as I’m writing this - I just realized why. My hassio_supervisor was updated coincidentally at the same time as me trying this, and AppArmor was preventing any of the addons from shutting down or restarting… Thats why it wasn’t accepting the new config… because there wasn’t any being saved.

Ok back to testing… I still wrote this post, in case someone else is having the same problem. You need to shut off apparmor temporarily (don’t think this is recommended, or suggested however) and then you can shut down those containers and reboot the server with a fresh status.

I’ll post back here if or when this is sorted and let others know, in case they have the same experience as I did.

When I first set mine up I had it pointed to a specific subfolder on DropBox but that stopped working after a short time and the only way I could fix it was to point the add-on at the root, been fine ever since.

Given I have an account only for hassio snapshots it make no odds where they go, just that they are there. Might be worth a try for those having problems as I notice most are trying to use subfolders…

"output": "/"

1 Like

So weird. I do specify a folder and it works. However, on dropbox it seems to have another folder under the folder I specify… odd. I haven’t checked because I really don’t care but maybe it’s something to do with how I set up the app…

My path is /Home-Assistant/Backups/home-assistant-backups/*.tar files

My Options in the dropbox add-on are: /home-assistant-backups/*.tar

So I guess in the app setup seems to me it makes a folder using the app name… in my case the app name I created on dropbox is ‘Home Assistant Backups’ and then it uses your options to create a folder under that.

There’s two ways to setup a Dropbox Apps in their interface - one is give access to an application specific folder only (that appears to be what you did) - and the other is to give the app full root access in Dropbox. So depending on which one you chose, it will use the application name as the root. or if you gave full access, it will use your dropbox root folder. Both work, just one limits the access you gave the application.

I dont remember what I did to be honest… just followed Daniels instructions. Is there any way to check or reconfigure an app? I was poking around the app on my iPad last night in chrome as you can’t see much of anything in the iPhone dropbox app.

If you goto your dropbox.com/account/connected_apps/ - you’ll see your linked apps and it will say in the table of data., whether you gave it “app folder” access. or “full dropbox” access.

I’ll have another look later today. I was in that area and didn’t notice it - that is where I found the folder info.

I’m guessing you can’t edit it? Need to recreate the app?

In my Dropbox, this is my connected apps

And my config is:

{
  "oauth_access_token": "xxxxxxxx",         # app_key in Dropbox developer page
  "output": "/hass_b3_backup/",                 # folder created under Application in Dropbox
  "keep_last": 7
}

Is it right?

Thanks

That will be fine. You will see your backup files here:

/apps/hass_b3c_backup/hass_b3_backup/

(I think)

I velieve that will put the files in your dropbox account like: /hass_b3_backup/hass_b3_backup/ folder. ie, you’re using an application folder as the root… so you don’t need to add /hass_b3_backup/ folder in your add on config. if you just put “/” as the folder in the config of the addon - then it will prob be where you are hoping it will show up.

1 Like

I’ve changed the output now to "/" and will see tonight if it will go right.

Thanks

It’s neither right nor wrong either way. You really just need to be able to find them. On my Windows PC I run a script to leave only 5 in dropbox otherwise it fills up - so script moves them to where I keep them longer term. The script knows where to find them - that’s all you need.

Thanks @DavidFW1960

The fact is that actually this dropbox account is empty, and is dedicated to Hassio (for now).

1 Like