Re: inotify and rsync as user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Le samedi 2 mai 2020 11:42:37 CEST siefke_listen@xxxxxx a écrit :

> The result is same. When run ssh samsung it works, when I run sync_docs.sh
> in shell it works. Why with systemd make it trouble?
> 
> Thank you
> Silvio

I do some rsync replication based on cron jobs, without inotify nor systemd.

keychain unscrewed the script for automation to succeed. At the top of the 
script :

keychain --agents "ssh" &> /dev/null
. $HOME/.keychain/$(hostname)-sh
ssh-add &> /dev/null
# ... rsync something ...

This supposes that you have rightly setup SSH keys on both hosts, and that the 
private key on the source host is not encrypted.

In case it might help.

Regards.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux