your timing on this was perfect. I had time to sit down this afternoon to figure out backups and saw your video pop-up just in time. I usually don't get that lucky. Thanks!
Looks like my comment I made a few days ago never got posted, but I tried it and found that in the config you need to add (backup:). Once I added that it all went well. This was based off of HA docs on line.
This depends if you have default_config: or not I think. Most of the newer installations should have it. And comments still get deleted. Really hoped that it was fixed by YT, but apparently not. Thank you Carlton
Thanks you for this nice update :). Don't forget to add backup: in configuration.yaml if you don't use default. Second point, I got an error when at my first try. Check folder permissions to correct it.
Yes, If default config is not enabled, you have to add backup: to configuration.yaml In regard to permissions, did you see any other issue here? Besides backup probably not generating? Do you use File Editor or VSCode?
@@BeardedTinker all is working fine when previous error corrected. a TAR gz should have been a good choice. Perhaps in the next release. I will try to find a user voice for home assistant
Hi, I just make my first experience with a Raspberry Pi and home assistant core. Ion one week I destroyed my os already 2 time. In the meantime, I work with sc card images. But of course, a full backup and restore here takes to long. Unfortunately nothing has changed in two years. There is no automated way to restore a backup in HA Core! So my question is how to restore the HA core settings from a Backup I have made. You said you can import them. But how? Do I just have to cope and paste the backup folder e.g. via Windwos Samba access ? What is the exact target folder on PI? Thanks George
That's correct! Due to how core works and what Supervisor does, there is no way to do restore on core. In HA OS, Supervisor takes that process over and since Core doesn't have supervisor it's impossible to implement this. Yes. You unpack the file inside configuration folder and that is it (where YAML files are located).
Hi Thank you for another great video. I am new to HA so I have a lot of basic things to learn still. But your videos help a lot. But one thing I am missing is how to restore from the backup. It is probably extremely simple. But when you have not tried for the first time then it can be a big thing. I am also running it on a Synology in Docker. But if it crashes then I am not sure how to use the backup. Would you consider making a follow up video on this? :)
Hi Claus and welcome to wonderful world of Home Automation :) Actually, you have great question. I do plan to record it, but as you've noticed, there is no restore command. It's manual work of unzipping the backup file to specific folder.
@@BeardedTinker which specific folder though? I am really struggling to figure this seamingly simple thing out. Every online resource I find simply says 'unzip the tar'....well sure...but where?
For restore, the same folder where you keep your configuration file. If it's docker, that can be anything you named your folder. I usually name it homeassistant. HA has to be offline for that of course.
@@BeardedTinker cool! thanks so much! weirdly, ubuntu doesn't like my own privileges to write to that folder...sudo isn't enough....I gotta look into more advanced ways to move those files from the CLI
Hopefully this is just a first step to being able to restore a new fresh container from a backup. I just nuked my ha os in favor of just running containers on my pi, but i lost all my entity to zwave device mappings.
You are right, but no, it will not be updated further with restore. Talked with Devs on it - because they have no way to recreate container unless there is also supervisor running, it's impossible to do so. That's why Docker version will only have backup and it will require restore by hand.
@@BeardedTinker totally understandable. Any info grabbed regarding automate taking backup? Btw thanks for your fruitful contents. I have been following from the time then our host was not showing his face.
@@irtibatkisileri222 you can automate backup with very simple automation - check here: www.home-assistant.io/integrations/backup/#example-backing-up-every-night-at-300-am yThere is simple service call for it
I'm running Home Assistant 2022.4.5 in Docker on my Synology NAS, but I do not see a back up option under Configuration between Blueprints and Dashboard.
@@BeardedTinker if I understand what you were saying in your video, I should be able to take this Docker HA Core backup and restore it to a virtual machine instance of HA Supervised version?
Can somebody say to me how to import my settings from backup to new instance of HA core? I tried just import tar file to backups folder, I tried extract files from archive to main directory. New HA don't see any changes.
First step is to stop Docker container with HA - it must not be running. Than in folder you have configured for Docker container to keep files (let's say /homeassistant) you just un-tar all of the files and folders, including hidden ones. Last step is restart. That should be it - just be careful not to create sub.folder within your config folder (for example /homeassistant/homeassistant). Configuration.yaml file should be directly positioned in folder you used in Docker create command.
Sorry, how do you restore the backups from a docker HA? Do you have to do it manually by nuking the config folder and copying in the back into the config folder? I've tried to do that when moving from laptop docker to RPi docker, but none of the devices or dashboards carry over when I do that.
When you create new Docker installation and start it for the first time -. doesn't it present option to restor from backup? My Docker setup is currently down as I'm doing something so can't test it.
@@BeardedTinker I think I maybe saw that *once*. Right now it's prompting to create a new account with no restore option. And going through the setup process looks like it skips the restore option.
I've nuked Docker images/containers/volumes, and HA config, and still no restore option; that's maybe a problem with the pi4 specific repo, I'll switch to the other one.
@Heimdall Midgard for RPi there is HA OS ;) EDIT: My point was - not everyone can use Supervised version on OS they are running system on. Also, not all Supervised in Docker versions are supported by HA - there will always be people running pure Docker
your timing on this was perfect. I had time to sit down this afternoon to figure out backups and saw your video pop-up just in time. I usually don't get that lucky. Thanks!
Hope you'll find good use for this. And also, wish we get service to be able to use this in automation.
Perfect video as usual. Thank you BT !
Looks like my comment I made a few days ago never got posted, but I tried it and found that in the config you need to add (backup:). Once I added that it all went well. This was based off of HA docs on line.
This depends if you have default_config: or not I think.
Most of the newer installations should have it.
And comments still get deleted. Really hoped that it was fixed by YT, but apparently not. Thank you Carlton
Thanks you for this nice update :). Don't forget to add backup: in configuration.yaml if you don't use default. Second point, I got an error when at my first try. Check folder permissions to correct it.
Yes, If default config is not enabled, you have to add backup: to configuration.yaml
In regard to permissions, did you see any other issue here? Besides backup probably not generating? Do you use File Editor or VSCode?
@@BeardedTinker all is working fine when previous error corrected. a TAR gz should have been a good choice. Perhaps in the next release. I will try to find a user voice for home assistant
Hi, I just make my first experience with a Raspberry Pi and home assistant core. Ion one week I destroyed my os already 2 time. In the meantime, I work with sc card images. But of course, a full backup and restore here takes to long. Unfortunately nothing has changed in two years. There is no automated way to restore a backup in HA Core! So my question is how to restore the HA core settings from a Backup I have made. You said you can import them. But how? Do I just have to cope and paste the backup folder e.g. via Windwos Samba access ? What is the exact target folder on PI? Thanks George
That's correct! Due to how core works and what Supervisor does, there is no way to do restore on core. In HA OS, Supervisor takes that process over and since Core doesn't have supervisor it's impossible to implement this.
Yes. You unpack the file inside configuration folder and that is it (where YAML files are located).
Super! Thank You👍
Hope they'll add service call fo rit so this can be automated...
Hi
Thank you for another great video. I am new to HA so I have a lot of basic things to learn still. But your videos help a lot. But one thing I am missing is how to restore from the backup. It is probably extremely simple. But when you have not tried for the first time then it can be a big thing. I am also running it on a Synology in Docker. But if it crashes then I am not sure how to use the backup. Would you consider making a follow up video on this? :)
Hi Claus and welcome to wonderful world of Home Automation :)
Actually, you have great question. I do plan to record it, but as you've noticed, there is no restore command. It's manual work of unzipping the backup file to specific folder.
@@BeardedTinker which specific folder though? I am really struggling to figure this seamingly simple thing out. Every online resource I find simply says 'unzip the tar'....well sure...but where?
For restore, the same folder where you keep your configuration file. If it's docker, that can be anything you named your folder. I usually name it homeassistant. HA has to be offline for that of course.
@@BeardedTinker cool! thanks so much! weirdly, ubuntu doesn't like my own privileges to write to that folder...sudo isn't enough....I gotta look into more advanced ways to move those files from the CLI
Hopefully this is just a first step to being able to restore a new fresh container from a backup. I just nuked my ha os in favor of just running containers on my pi, but i lost all my entity to zwave device mappings.
You are right, but no, it will not be updated further with restore. Talked with Devs on it - because they have no way to recreate container unless there is also supervisor running, it's impossible to do so. That's why Docker version will only have backup and it will require restore by hand.
@@BeardedTinker totally understandable. Any info grabbed regarding automate taking backup? Btw thanks for your fruitful contents. I have been following from the time then our host was not showing his face.
p.s. I have separate youtube accounts for home and office computers.
@@irtibatkisileri222 you can automate backup with very simple automation - check here: www.home-assistant.io/integrations/backup/#example-backing-up-every-night-at-300-am
yThere is simple service call for it
I'm running Home Assistant 2022.4.5 in Docker on my Synology NAS, but I do not see a back up option under Configuration between Blueprints and Dashboard.
Thanks for the comment Glen.
Try adding backup: to your configuration.yaml file.
It should be enabled by default if you have default_config:
@@BeardedTinker thank you so much! That was exactly it! I have it now.
Nice, glad you got tžit working. Check in documents for default_config: It enables bunch of things, that should be enabled by default.
@@BeardedTinker if I understand what you were saying in your video, I should be able to take this Docker HA Core backup and restore it to a virtual machine instance of HA Supervised version?
Can somebody say to me how to import my settings from backup to new instance of HA core? I tried just import tar file to backups folder, I tried extract files from archive to main directory. New HA don't see any changes.
First step is to stop Docker container with HA - it must not be running.
Than in folder you have configured for Docker container to keep files (let's say /homeassistant) you just un-tar all of the files and folders, including hidden ones.
Last step is restart. That should be it - just be careful not to create sub.folder within your config folder (for example /homeassistant/homeassistant).
Configuration.yaml file should be directly positioned in folder you used in Docker create command.
Sorry, how do you restore the backups from a docker HA? Do you have to do it manually by nuking the config folder and copying in the back into the config folder?
I've tried to do that when moving from laptop docker to RPi docker, but none of the devices or dashboards carry over when I do that.
When you create new Docker installation and start it for the first time -. doesn't it present option to restor from backup? My Docker setup is currently down as I'm doing something so can't test it.
@@BeardedTinker I think I maybe saw that *once*. Right now it's prompting to create a new account with no restore option. And going through the setup process looks like it skips the restore option.
I've nuked Docker images/containers/volumes, and HA config, and still no restore option; that's maybe a problem with the pi4 specific repo, I'll switch to the other one.
Nope, main docker image doesn't present a restore for me. Nuked all docker stuff, and HA config.
@@BeardedTinker Whether or not the restore is available, shouldn't a manual config copy work?
Just use HA Docker Supervised. Everything from both worlds.
Just us VM - much easier, one file to install and that's it ;)
@@BeardedTinker True but not on a Raspi.
@Heimdall Midgard for RPi there is HA OS ;)
EDIT: My point was - not everyone can use Supervised version on OS they are running system on. Also, not all Supervised in Docker versions are supported by HA - there will always be people running pure Docker