I have setup a Pi with ArchLinux. Now I want to sync one directory called Pi on my local machine with the directory Pi on my Pi.
At first I have written a little script that uses
rsync but I've run into some problems as it is not bi-directional and couldn't create a parent directory.
Then I saw a post that mentioned
unison. At this time I have this command:
unison /home/user/Pi/ ssh://email@example.com:22//home/ente/Pi/
This works quite nicely. But I always have to type in my password and then what I want to. How can I make
unison authenticate me with my RSA key I have generated for
I login via
ssh with that key and
rsync also did it. And how can I skip Unison's question what it should do?
unison /home/user/Cloud/Encrypted/ \ ssh://firstname.lastname@example.org:22//home/ente/Cloud << EOF MYPASSW g EOF
Is probably not such a good idea?