Closed mister-bogus closed 8 years ago
Hmmm, didn't know you could end up in such a situation. Couldn't you add it to the path?
export PATH=$PATH:/path/to/dir
And symlink to binaries
cd /usr/bin
sudo ln -s /path/to/binary binary-name
It is in the path (path being set in .bashrc and .profile of the remote host) but not being found anyhow when doing :
rsync -ruva --progress --rsh=ssh /dir/to/backup \ root@drobo5n.local.lan:/mnt/DroboFS/Shares/Public
I get :
sh: rsync: not found
EDIT: Found a workaround using command= option in the authorized_keys file of the remote system.
Rsync is installed, and also created symblink?
fre. 15. jan. 2016 kl. 21.57 skrev mister-bogus notifications@github.com:
It is in the path (path being set in .bashrc and .profile of the remote host) but not being found anyhow when doing : rsync -ruva --progress --rsh=ssh /dir/to/backup \ root@drobo5n.local.lan :/mnt/DroboFS/Shares/Public I get : sh: rsync: not found
— Reply to this email directly or view it on GitHub https://github.com/furier/websync/issues/38#issuecomment-172090628.
That also works, thanks.The only problem with that is I have to create the symlink every time I reboot the NAS.
No problem, but what about creating a cron script to create the symblink on reboot?
søn. 17. jan. 2016 kl. 18.47 skrev mister-bogus notifications@github.com:
That also works, thanks.The only problem with that is I have to create the symlink every time I reboot the NAS.
— Reply to this email directly or view it on GitHub https://github.com/furier/websync/issues/38#issuecomment-172357973.
Yeah I will implement something like that, the NAS has a mechanism to start services and programs installed, I will just modify the script that starts rsync to create the symlink. thanks a lot.
Glad to help! :)
Using websync between 2 servers, the problem is the remote server is a NAS and rsync is not in the path and it is found in a non-standard location. The option to specify the parameter --rsync-path would be great to solve this case.