#How do I get the .unison folder to be persisted in "SSH & Web Terminal"?
1 messages · Page 1 of 1 (latest)
why not use the backup system to automatically put the backups on your server?
you can mount a network share and tell it to put backups there. or there are other specific backup target integrations depending on what options you have for the server
Can I setup an SSH network share?
I don't have SAMBA or NFS setup on the server I want to backup to.
I see if I can configure the environment variable UNSION to a different path, that will let me set where it saves it. I just need to figure out how to make sure that persists.
currently ssh is not an option but there is a pull request open to add it - https://github.com/home-assistant/core/pull/135844
I realise that doesn't help you right now but its coming
is webdav an option? there is an integration for that
No
how are you running Unison currently? as an addon?
yeah any updates will break stuff added like that
I'm just adding ssh root@ha apk add unison before it runs unison on the server side.
I'm trying to pull the files rather than push them.
you could try writing a script that copies the backup files to your target system via ssh then execute that script from within HA.
there is the syncthing addon too which i think has alot of options for stuff like this too. you could try that as a different method?
just need to also issue a symlink command, I guess.
Sorted with:
ssh root@homehost apk add unison ssh root@homehost ln -s /data/.unison /root/.unison unison ha.prf -auto -batch
That is the backup script.
Solved, but not pretty.
yeah, i would agree with that, but hey if it works for now then it works. i do suggest looking out for a backup target that can work for you. like the ssh one when it makes it in and moving to that when you can.
remember haos is "just enough os" to run HA so adding stuff is unsupported and can easily break
Yeah. I look forward to ssh as a backup target. Not sure why it wasn't there sooner.
the reworked backup system is new and still getting new targets. i agree that having ssh earlieer would have been nice. but sometimes things just end up taking longer than hoped.