I’m trying Dropbox backup of snapshots.
Found https://www.home-assistant.io/docs/ecosystem/backup/backup_dropbox/
I’ve created folder /home/dropbox_backup/ and copy two files here.
Modified two linse inside dropbox.py
syncdir="/backup/"
uploader = “/home/dropbox_backup/dropbox_uploader.sh”
Success steps up to run python dropbox.py. It shows an error
-bash: python: command not found
Pi 4 is the hardware you’re running it on, not the installation method. If you see a “Supervisor” icon towards the bottom of your sidebar then you are running Supervised, and you will be able to install add-ons.
Installing the Dropbox add-on (link below) will be far easier than the manual method you’re attempting.
First you need to follow the instructions on that page under “Configuration” in order to prepare your Dropbox account. After you follow those instructions you will have an access token, which you put inside of the add-on configuration.
And then you need to create the automation in Home Assistant. Here is the automation I use. It will perform a complete backup of Home Assistant every night at 3am. And then 30 minutes later at 3:30am it will upload that backup to Dropbox using this addon.
Thank you, this is help I needed to understand better HA.
But is not working for me.
I’m writing mostly everything in GUI and this is result I’ve got from automation.yaml file.
Created backup file has name Automated Backup {{ now().strftime(’%Y-%m-%d’) }}
And no file has been added into Dropbox. Log doesn’t show anything about Dropbox.
Ok I will try it. Not sure how or which type of block I must select.
My backup takes 20 seconds now. I will change it to longer times when it will be needed.
I have it installed. I’ve tried add it to configuration.yaml but edit shows an error now
duplicated mapping key at line 74, column -448:
automation:
^
I’ve tried make an block in this forum - francisp, it is right now?
4. BTW How to divide configuration.yaml to more files? I’m at beginning and is not easy to find correct part in it. I prepare to configure BroadLink remotes and it will be such 1000 buttons, so ie. 2000 scripts, each script is about 7 lines. It is hard work on 6" display of mobile phone.
5. I have result from log file. No file in Dropbox still.
20-05-03 09:37:20 INFO (MainThread) [supervisor.api.security] /snapshots access from 7be23ff5_dropbox_sync
I don’t understand.
We are talking about standalone files for different parts of configurations.
Include of automations.yaml is standard, I think, and this is part of GUI Automations. When I add something to this GUI, it has been added into automations.yaml automatically. Why I have to rename my new file to this standard file when I would like to divide it different files because file will be huge?
Yes, I’m novice.
I’ve been add code above to Automations. It has been bad and not working, so I put code into configuration.yaml. Backup has correct name, Dropbox still not working.
I’ve had question to have configuration.yaml not huge. I’ve been followed link divide into standalone file, so it is not working. Now I have to put code again to automations.yaml. Really I don’t understand. Cycle.
So, I need to understand. It is not possible divide configuration.yaml to different files, only make an packages?
Could I leave automations.yaml and have own file file Dropbox backup integration?