Re: [arch-general] inotify and rsync as user

2020-05-02 Thread SET via arch-general
Le samedi 2 mai 2020 11:42:37 CEST siefke_lis...@web.de 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

Re: [arch-general] inotify and rsync as user

2020-05-02 Thread Bjoern Franke via arch-general
Hi, I have question to the combination of inotify and rsync. I want that my documents folder sync with other maschine if the host is up. So I find this soulution in net. maybe it would be less pain using something like https://syncthing.net/ - it also watches for file changes and syncs

Re: [arch-general] inotify and rsync as user

2020-05-02 Thread ml
> siefke@192.168.2.160: Permission denied (publickey,password). > > So I place the script in home folder, place systemd service file in home and > run it with systemd --user. > > The result is same. When run ssh samsung it works, when I run sync_docs.sh > in shell it works. Why with systemd make

[arch-general] inotify and rsync as user

2020-05-02 Thread siefke_lis...@web.de
Hello, I have question to the combination of inotify and rsync. I want that my documents folder sync with other maschine if the host is up. So I find this soulution in net. The problem is, I write a script take it in /usr/local/bin cat /usr/local/bin/sync_docs.sh #!/usr/bin/env bash if