Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105563

Automation for rsync using shell_command (Help request)

$
0
0

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.

rsync -avz --delete /config/www/ pi@192.168.1.xxx:/PiServer/videos/

The YAML command is below:
shell_command:
do_rsync: rsync -avz --delete /config/www/ pi@192.168.1.xxx:/PiServer/videos/

Any ideas? Your help is appreciated.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105563

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>