furier / websync

websync is intended to be an rsync manager, where rsync tasks can be added, scheduled and maintained in a sane manner.
http://furier.github.io/websync/
MIT License
484 stars 91 forks source link

Possibility to specify --rsync-path #38

Closed mister-bogus closed 8 years ago

mister-bogus commented 8 years ago

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.

furier commented 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
mister-bogus commented 8 years ago

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.

furier commented 8 years ago

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.

mister-bogus commented 8 years ago

That also works, thanks.The only problem with that is I have to create the symlink every time I reboot the NAS.

furier commented 8 years ago

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.

mister-bogus commented 8 years ago

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.

furier commented 8 years ago

Glad to help! :)