I am a newbie to HA. I am trying to use rsync to make backups of camera videos to a server hosted by another pi. I am able to use rsync in the terminal integration and it copies files over. I was able to use ‘ssh-keygen -t rsa’ to connect to the destination pi without entering a password.
I was also able to put a shell_command to use the rsync command that I was able to run successfully from the terminal integration. When I run the automation, it does call the shell_script. But it does not copy the files. I have the rsync command below.
Thank you. I looked through the article. I get that rsync is not available readily in HA per se. Do you have any pointers in using the rsync addon? I was able to mount the external drive to the media folder. However, I am still not able to use the rsync. Is there no workaround for this?
I have learned the hard way that rsync does not work in the hassio environment. For my purpose, I have resorted to mounting the remote folder onto the hassio, and then calling a shell script that will copy the files to the mounted folder. I have the camera videos stored daily on specific date format folders. I run an automation daily to copy the previous date folder to the mounted location. Let me know if anyone wants more details.
Hi - just come across this whilst trying to do something similar (rsync) - if you can post/send your script/solution it would be helpful please (and where to put it). Thanks
I have abandoned this and am using a remote file copy tool to access the Samba share on HA. Would prefer rsync but hey ho, this works and is existing tool used for other purposes rather than something new.